public class MWC8222 extends java.lang.Object implements RandomLongGenerator
| Constructor and Description |
|---|
MWC8222()
Construct a random number generator to sample uniformly from [0, 1].
|
| Modifier and Type | Method and Description |
|---|---|
double |
nextDouble()
Get the next random
double. |
long |
nextLong()
Get the next random
long. |
void |
seed(long... seeds)
Seed the random number generator to produce repeatable sequences.
|
public MWC8222()
public void seed(long... seeds)
RandomNumberGeneratorseed in interface RandomNumberGeneratorseeds - the seedspublic long nextLong()
RandomLongGeneratorlong.nextLong in interface RandomLongGeneratorlongpublic double nextDouble()
RandomNumberGeneratordouble.nextDouble in interface RandomNumberGenerator