public class MersenneTwister64 extends AbstractRng64
Random depending on the kind of output you want. Mersenne
Twister (mostly in its 32-bit incarnation) has been the de facto
standard PRNG for scientific applications in the last two decades.
The recursion is similar to the 32-bit Mersenne Twister but different, so the output is totally different from the 32-bit version.
This is a port of the "mt19937-64.c" C code (2004/9/29 version).
See: The Mersenne Twister Home PageDOUBLE_NORM, FLOAT_NORM, nextGaussian, unused| Constructor and Description |
|---|
MersenneTwister64() |
MersenneTwister64(long seed) |
MersenneTwister64(long[] seedArray) |
| Modifier and Type | Method and Description |
|---|---|
static PseudoRandom |
getDefault() |
long |
nextLong() |
beta, beta, cauchy, cauchy, chiSquare, chiSquare, doubles, doubles, doubles, doubles, exponential, exponential, gamma, gamma, getAlgorithm, getSeed, ints, ints, ints, ints, logNormal, logNormal, longs, longs, longs, longs, next, nextBoolean, nextBytes, nextDouble, nextDouble, nextDoubles, nextFloat, nextFloat, nextGaussian, nextGaussian, nextInt, nextInt, nextInt, nextLong, nextLong, nextLongs, normal, normal, saveSeed, saveSeed, studentT, studentT, weibull, weibullpublic MersenneTwister64()
public MersenneTwister64(long seed)
public MersenneTwister64(long[] seedArray)
public final long nextLong()
nextLong in interface PseudoRandomnextLong in class AbstractRng64public static PseudoRandom getDefault()
Copyright © 2022. All rights reserved.