|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Random
org.apache.commons.math3.random.JDKRandomGenerator
public class JDKRandomGenerator
Extension of java.util.Random
to implement
RandomGenerator
.
Field Summary | |
---|---|
private static long |
serialVersionUID
Serializable version identifier. |
Constructor Summary | |
---|---|
JDKRandomGenerator()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.util.Random |
---|
next, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.math3.random.RandomGenerator |
---|
nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
public JDKRandomGenerator()
Method Detail |
---|
public void setSeed(int seed)
int
seed.
Sequences of values generated starting with the same seeds should be identical.
setSeed
in interface RandomGenerator
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
seed
- the seed value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |