Constructor | Description |
---|---|
RandomNumberGenerator() |
|
RandomNumberGenerator(long seed) |
Modifier and Type | Method | Description |
---|---|---|
java.util.Random |
getWrappedRandom() |
|
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).
|
public RandomNumberGenerator()
public RandomNumberGenerator(long seed)
public double nextDouble()
IRandom
nextDouble
in interface IRandom
public double nextFixedDouble()
IRandom
nextFixedDouble
in interface IRandom
public int nextInt(int maxInt)
IRandom
public double nextGaussian()
IRandom
nextGaussian
in interface IRandom
public java.util.Random getWrappedRandom()