Package jdistlib.rng
Class RandomWELL44497b
java.lang.Object
java.util.Random
jdistlib.rng.RandomEngine
jdistlib.rng.RandomWELL44497b
- All Implemented Interfaces:
Serializable,RandomGenerator
Implementation of WELL 44497b (Well Equidistributed Long-period Linear) random number generator by Francois Panneton, et al. The period is approximately 2^44497.
Paper: Panneton, F. and L'Ecuyer, P. Improved (2006) Long-Period Generators Based on Linear Recurrences Modulo 2, ACM Transaction on Mathematical Software 32:1, pp 1--16(link)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.random.RandomGenerator
RandomGenerator.ArbitrarilyJumpableGenerator, RandomGenerator.JumpableGenerator, RandomGenerator.LeapableGenerator, RandomGenerator.SplittableGenerator, RandomGenerator.StreamableGenerator -
Field Summary
Fields inherited from class jdistlib.rng.RandomEngine
mSeed -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jdistlib.rng.RandomEngine
getSeed, randomMethods inherited from class java.util.Random
doubles, doubles, doubles, doubles, from, ints, ints, ints, ints, longs, longs, longs, longs, next, nextBoolean, nextBytesMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.random.RandomGenerator
isDeprecated, nextDouble, nextDouble, nextExponential, nextFloat, nextFloat, nextGaussian, nextInt, nextLong
-
Constructor Details
-
RandomWELL44497b
public RandomWELL44497b() -
RandomWELL44497b
public RandomWELL44497b(int[] init)
-
-
Method Details
-
setSeed
public void setSeed(long seed) - Overrides:
setSeedin classRandomEngine
-
nextGaussian
public final double nextGaussian()- Specified by:
nextGaussianin interfaceRandomGenerator- Specified by:
nextGaussianin classRandomEngine
-
nextDouble
public double nextDouble()- Specified by:
nextDoublein interfaceRandomGenerator- Specified by:
nextDoublein classRandomEngine
-
nextFloat
public float nextFloat()- Specified by:
nextFloatin interfaceRandomGenerator- Specified by:
nextFloatin classRandomEngine
-
clone
- Specified by:
clonein classRandomEngine
-
nextInt
public int nextInt()- Specified by:
nextIntin interfaceRandomGenerator- Specified by:
nextIntin classRandomEngine
-
nextInt
public int nextInt(int n) - Specified by:
nextIntin interfaceRandomGenerator- Specified by:
nextIntin classRandomEngine
-
nextLong
public long nextLong()- Specified by:
nextLongin interfaceRandomGenerator- Specified by:
nextLongin classRandomEngine
-
nextLong
public long nextLong(long l) - Specified by:
nextLongin interfaceRandomGenerator- Specified by:
nextLongin classRandomEngine
-