|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.random.BitsStreamGenerator
org.apache.commons.math.random.AbstractWell
org.apache.commons.math.random.Well19937c
public class Well19937c
This class implements the WELL19937c 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.
Constructor Summary | |
---|---|
Well19937c()
Creates a new random number generator. |
|
Well19937c(int seed)
Creates a new random number generator using a single int seed. |
|
Well19937c(int[] seed)
Creates a new random number generator using an int array seed. |
|
Well19937c(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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Well19937c()
The instance is initialized using the current time as the seed.
public Well19937c(int seed)
seed
- the initial seed (32 bits integer)public Well19937c(int[] seed)
seed
- the initial seed (32 bits integers array), if null
the seed of the generator will be related to the current timepublic Well19937c(long seed)
seed
- the initial seed (64 bits integer)
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |