public abstract class AbstractWell extends BitsStreamGenerator implements java.io.Serializable
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.
Modifier and Type | Method and Description |
---|---|
void |
setSeed(int seed)
Reinitialize the generator as if just built with the given int seed.
|
void |
setSeed(int[] seed)
Reinitialize the generator as if just built with the given int array seed.
|
void |
setSeed(long seed)
Reinitialize the generator as if just built with the given long seed.
|
nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong
public void setSeed(int seed)
The state of the generator is exactly the same as a new generator built with the same seed.
setSeed
in interface RandomGenerator
setSeed
in class BitsStreamGenerator
seed
- the initial seed (32 bits integer)public void setSeed(int[] seed)
The state of the generator is exactly the same as a new generator built with the same seed.
setSeed
in interface RandomGenerator
setSeed
in class BitsStreamGenerator
seed
- the initial seed (32 bits integers array), if null
the seed of the generator will be related to the current timepublic void setSeed(long seed)
The state of the generator is exactly the same as a new generator built with the same seed.
setSeed
in interface RandomGenerator
setSeed
in class BitsStreamGenerator
seed
- the initial seed (64 bits integer)Copyright © 2010 - 2020 Adobe. All Rights Reserved