- java.lang.Object
-
- swim.math.Random
-
- swim.math.MersenneTwister64
-
public class MersenneTwister64 extends Random
-
-
Constructor Summary
Constructors Constructor Description MersenneTwister64()
MersenneTwister64(long seed)
MersenneTwister64(long[] key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
nextBoolean()
byte
nextByte()
double
nextDouble()
float
nextFloat()
int
nextInt()
long
nextLong()
short
nextShort()
-
-
-
Method Detail
-
nextDouble
public double nextDouble()
- Specified by:
nextDouble
in classRandom
-
nextBoolean
public boolean nextBoolean()
- Specified by:
nextBoolean
in classRandom
-
-