| 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()
IRandomnextDouble in interface IRandompublic double nextFixedDouble()
IRandomnextFixedDouble in interface IRandompublic int nextInt(int maxInt)
IRandompublic double nextGaussian()
IRandomnextGaussian in interface IRandompublic java.util.Random getWrappedRandom()