RandomMersenneTwister
, RandomNumberGenerator
, RandomNumberGeneratorUnix
public interface IRandom
Modifier and Type | Method | Description |
---|---|---|
double |
nextDouble() |
Returns a pseudorandom double, uniformly distributed between
0.0 (exclusive) and 1.0 (exclusive).
|
double |
nextFixedDouble() |
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).
|
double nextDouble()
double nextFixedDouble()
int nextInt(int maxInt)
double nextGaussian()