public class PooledXORGenerator extends PooledGeneratorBase
RandomNumber
instances by XOR-ing
their generated long values.first, MASK_31BIT, MULTIPLICATIVE_FACTOR_31BIT, MULTIPLICATIVE_FACTOR_32BIT, second
Constructor and Description |
---|
PooledXORGenerator()
Creates a new instance of PooledXORGenerator with no RandomNumbers set.
|
Modifier and Type | Method and Description |
---|---|
double |
draw()
Returns the next value as a U(0,1).
|
long |
drawLong()
Returns the results of drawing from the 2 RandomNumbers XOR'ed.
|
double |
getMultiplier()
The factor to multiply drawLong() by the get U(0,1).
|
public PooledXORGenerator()
public long drawLong()
RandomNumber
instances.public double draw()
public double getMultiplier()