public class JDKRandomGenerator extends java.util.Random implements RandomGenerator
java.util.Random
to implement
RandomGenerator
.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. |
doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed
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"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"