public class BoxMuller extends java.lang.Object implements RandomStandardNormalNumberGenerator
| Constructor and Description |
|---|
BoxMuller()
Construct a random number generator to sample from the standard Normal distribution.
|
BoxMuller(RandomLongGenerator uniform)
Construct a random number generator to sample from the standard Normal distribution.
|
| 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 BoxMuller(RandomLongGenerator uniform)
uniform - a uniform random number generatorpublic BoxMuller()
public void seed(long... seeds)
RandomNumberGeneratorseed in interface RandomNumberGeneratorseeds - the seedspublic double nextDouble()
RandomNumberGeneratordouble.nextDouble in interface RandomNumberGenerator