public class MersenneTwister64 extends MersenneTwister
MersenneTwister,
Serialized FormDEFAULT_SEED| Constructor and Description |
|---|
MersenneTwister64()
Constructs and returns a random number generator with a default seed, which is a constant.
|
MersenneTwister64(Date d)
Constructs and returns a random number generator seeded with the given date.
|
MersenneTwister64(int seed)
Constructs and returns a random number generator with the given seed.
|
| Modifier and Type | Method and Description |
|---|---|
double |
raw()
Returns a 64 bit uniformly distributed random number in the open unit interval
(0.0,1.0) (excluding 0.0 and 1.0). |
clone, nextBlock, nextInt, setSeedapplyAsDouble, applyAsInt, makeDefault, nextDouble, nextFloat, nextLongequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThen, compose, identityandThen, compose, identitypublic MersenneTwister64()
public MersenneTwister64(int seed)
seed - should not be 0, in such a case MersenneTwister64.DEFAULT_SEED is silently substituted.public MersenneTwister64(Date d)
d - typically new java.util.Date()public double raw()
(0.0,1.0) (excluding 0.0 and 1.0).raw in class RandomEngineCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.