org.jscience.measure.random
Interface RandomGenerator

All Known Implementing Classes:
EcuyerGenerator, JavaGenerator, LuescherGenerator, MarsagliaGenerator, MersenneTwisterGenerator, RandomElement, RandomSeedable, RandomShuffle, RandomSynchronized, UniformNormalizedRandomGenerator

public interface RandomGenerator

This interface represent a random generator for scalars. Additionally, normalized generator should provide null mean and unit standard deviation scalars.


Method Summary
 double nextDouble()
          Generate a random scalar with null mean and unit standard deviation.
 

Method Detail

nextDouble

double nextDouble()
Generate a random scalar with null mean and unit standard deviation.

This method does not specify the shape of the distribution, it is the implementing class that provides it. The only contract here is to generate numbers with null mean and unit standard deviation.

Returns:
a random scalar