Class Well44497b
- java.lang.Object
-
- org.apache.commons.rng.core.BaseProvider
-
- org.apache.commons.rng.core.source32.IntProvider
-
- org.apache.commons.rng.core.source32.AbstractWell
-
- org.apache.commons.rng.core.source32.Well44497a
-
- org.apache.commons.rng.core.source32.Well44497b
-
- All Implemented Interfaces:
RandomIntSource
,RestorableUniformRandomProvider
,UniformRandomProvider
public class Well44497b extends Well44497a
This class implements the WELL44497b 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:
- 1.0
- See Also:
- WELL Random number generator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.rng.core.source32.AbstractWell
AbstractWell.IndexTable
-
-
Field Summary
-
Fields inherited from class org.apache.commons.rng.core.source32.AbstractWell
index, v
-
-
Constructor Summary
Constructors Constructor Description Well44497b(int[] seed)
Creates a new random number generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
next()
-
Methods inherited from class org.apache.commons.rng.core.source32.AbstractWell
getStateInternal, setStateInternal
-
Methods inherited from class org.apache.commons.rng.core.source32.IntProvider
nextBoolean, nextBytes, nextBytes, nextDouble, nextFloat, nextInt, nextLong, resetCachedState
-
Methods inherited from class org.apache.commons.rng.core.BaseProvider
checkIndex, checkStateSize, composeStateInternal, fillState, fillState, nextInt, nextLong, restoreState, saveState, splitStateInternal, toString
-
-
-
-
Constructor Detail
-
Well44497b
public Well44497b(int[] seed)
Creates a new random number generator.- Parameters:
seed
- Initial seed.
-
-
Method Detail
-
next
public int next()
- Specified by:
next
in interfaceRandomIntSource
- Overrides:
next
in classWell44497a
- Returns:
- the next random value.
-
-