Package org.apache.commons.math.random
Class Well44497a
- java.lang.Object
-
- org.apache.commons.math.random.BitsStreamGenerator
-
- org.apache.commons.math.random.AbstractWell
-
- org.apache.commons.math.random.Well44497a
-
- All Implemented Interfaces:
java.io.Serializable
,RandomGenerator
public class Well44497a extends AbstractWell
This class implements the WELL44497a pseudo-random number generator from François Panneton, Pierre L'Ecuyer and Makoto Matsumoto.This generator is described in a paper by François Panneton, Pierre L'Ecuyer and Makoto Matsumoto Improved Long-Period Generators Based on Linear Recurrences Modulo 2 ACM Transactions on Mathematical Software, 32, 1 (2006). The errata for the paper are in wellrng-errata.txt.
- Since:
- 2.2
- See Also:
- WELL Random number generator, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Well44497a()
Creates a new random number generator.Well44497a(int seed)
Creates a new random number generator using a single int seed.Well44497a(int[] seed)
Creates a new random number generator using an int array seed.Well44497a(long seed)
Creates a new random number generator using a single long seed.
-
Method Summary
-
Methods inherited from class org.apache.commons.math.random.AbstractWell
setSeed, setSeed, setSeed
-
Methods inherited from class org.apache.commons.math.random.BitsStreamGenerator
nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong
-
-
-
-
Constructor Detail
-
Well44497a
public Well44497a()
Creates a new random number generator.The instance is initialized using the current time as the seed.
-
Well44497a
public Well44497a(int seed)
Creates a new random number generator using a single int seed.- Parameters:
seed
- the initial seed (32 bits integer)
-
Well44497a
public Well44497a(int[] seed)
Creates a new random number generator using an int array seed.- Parameters:
seed
- the initial seed (32 bits integers array), if null the seed of the generator will be related to the current time
-
Well44497a
public Well44497a(long seed)
Creates a new random number generator using a single long seed.- Parameters:
seed
- the initial seed (64 bits integer)
-
-