public class Well19937a extends AbstractWell
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.
Constructor and Description |
---|
Well19937a()
Creates a new random number generator.
|
Well19937a(int seed)
Creates a new random number generator using a single int seed.
|
Well19937a(int[] seed)
Creates a new random number generator using an int array seed.
|
Well19937a(long seed)
Creates a new random number generator using a single long seed.
|
setSeed, setSeed, setSeed
clear, nextBoolean, nextBytes, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, nextLong
public Well19937a()
The instance is initialized using the current time as the seed.
public Well19937a(int seed)
seed
- the initial seed (32 bits integer)public Well19937a(int[] seed)
seed
- the initial seed (32 bits integers array), if null
the seed of the generator will be related to the current timepublic Well19937a(long seed)
seed
- the initial seed (64 bits integer)Jas4pp 1.5 © Java Analysis Studio for Particle Physics