cern.jet.random.engine
Class MersenneTwister64
java.lang.Object
cern.colt.PersistentObject
cern.jet.random.engine.RandomEngine
cern.jet.random.engine.MersenneTwister
cern.jet.random.engine.MersenneTwister64
- All Implemented Interfaces:
- Cloneable, DoubleFunction, IntFunction, Serializable
- public class MersenneTwister64
- extends MersenneTwister
Same as MersenneTwister except that method raw() returns 64 bit random numbers instead of 32 bit random numbers.
- Version:
- 1.0, 09/24/99
- See Also:
MersenneTwister
,
Serialized Form
Constructor Summary |
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. |
Method Summary |
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). |
MersenneTwister64
public MersenneTwister64()
- Constructs and returns a random number generator with a default seed, which is a constant.
MersenneTwister64
public MersenneTwister64(int seed)
- Constructs and returns a random number generator with the given seed.
- Parameters:
seed
- should not be 0, in such a case MersenneTwister64.DEFAULT_SEED is silently substituted.
MersenneTwister64
public MersenneTwister64(Date d)
- Constructs and returns a random number generator seeded with the given date.
- Parameters:
d
- typically new java.util.Date()
raw
public 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).
- Overrides:
raw
in class RandomEngine
Jump to the Colt Homepage