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