public class Ziggurat2000 extends java.lang.Object implements RandomStandardNormalNumberGenerator
BoxMuller transform seem to have better distributional properties.
There are implementation problems in the original uniform random number generator proposed in the paper.
To improve the quality, we use MWC8222 for the uniform random number generation.| Constructor and Description |
|---|
Ziggurat2000() |
| Modifier and Type | Method and Description |
|---|---|
double |
nextDouble()
Get the next random
double. |
void |
seed(long... seeds)
Seed the random number generator to produce repeatable sequences.
|
public void seed(long... seeds)
RandomNumberGeneratorseed in interface RandomNumberGeneratorseeds - the seedspublic double nextDouble()
RandomNumberGeneratordouble.nextDouble in interface RandomNumberGenerator