etomica.api
Interface IRandom

All Known Implementing Classes:
RandomMersenneTwister, RandomNumberGenerator, RandomNumberGeneratorUnix

public interface IRandom

Interface for random number generation.


Method Summary
 double nextDouble()
          Returns a pseudorandom double, uniformly distributed between 0.0 (inclusive) and 1.0 (exclusive).
 double nextGaussian()
          Returns a pseudorandom double, Gaussian ("normally") distributed value with mean 0.0 and standard deviation 1.0.
 int nextInt(int maxInt)
          Returns a pseudorandom integer, uniformly distributed between 0 (inclusive) and maxInt (exclusive).
 

Method Detail

nextDouble

double nextDouble()
Returns a pseudorandom double, uniformly distributed between 0.0 (inclusive) and 1.0 (exclusive).


nextInt

int nextInt(int maxInt)
Returns a pseudorandom integer, uniformly distributed between 0 (inclusive) and maxInt (exclusive).


nextGaussian

double nextGaussian()
Returns a pseudorandom double, Gaussian ("normally") distributed value with mean 0.0 and standard deviation 1.0.