public class ISAACRandom extends BitsStreamGenerator implements Serializable
Constructor and Description |
---|
ISAACRandom()
Creates a new ISAAC random number generator.
|
ISAACRandom(int[] seed)
Creates a new ISAAC random number generator using an int array seed.
|
ISAACRandom(long seed)
Creates a new ISAAC random number generator using a single long seed.
|
Modifier and Type | Method and Description |
---|---|
void |
setSeed(int seed)
Sets the seed of the underlying random number generator using an
int seed. |
void |
setSeed(int[] seed)
Sets the seed of the underlying random number generator using an
int array seed. |
void |
setSeed(long seed)
Sets the seed of the underlying random number generator using a
long seed. |
clear, nextBoolean, nextBytes, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, nextLong
public ISAACRandom()
public ISAACRandom(long seed)
seed
- Initial seed.public ISAACRandom(int[] seed)
seed
- Initial seed. If null
, the seed will be related
to the current time.public void setSeed(int seed)
int
seed.
Sequences of values generated starting with the same seeds should be identical.
setSeed
in interface RandomGenerator
setSeed
in class BitsStreamGenerator
seed
- the seed valuepublic void setSeed(long seed)
long
seed.
Sequences of values generated starting with the same seeds should be identical.
setSeed
in interface RandomGenerator
setSeed
in class BitsStreamGenerator
seed
- the seed valuepublic void setSeed(int[] seed)
int
array seed.
Sequences of values generated starting with the same seeds should be identical.
setSeed
in interface RandomGenerator
setSeed
in class BitsStreamGenerator
seed
- the seed valueJas4pp 1.5 © Java Analysis Studio for Particle Physics