public class JDKRandomGenerator extends java.util.Random implements RandomGenerator
java.util.Random to implement
RandomGenerator.| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
Serializable version identifier.
|
| Constructor and Description |
|---|
JDKRandomGenerator() |
| 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. |
next, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeedprivate static final long serialVersionUID
public void setSeed(int seed)
int seed.
Sequences of values generated starting with the same seeds should be identical.
setSeed in interface RandomGeneratorseed - 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 RandomGeneratorseed - the seed valueCopyright (c) 2003-2013 Apache Software Foundation