org.apache.commons.math3.random
Class JDKRandomGenerator
java.lang.Object
java.util.Random
org.apache.commons.math3.random.JDKRandomGenerator
- All Implemented Interfaces:
- Serializable, RandomGenerator
public class JDKRandomGenerator
- extends Random
- implements RandomGenerator
Extension of java.util.Random
to implement
RandomGenerator
.
- Since:
- 1.1
- Version:
- $Id: JDKRandomGenerator.java 3720 2012-03-16 16:34:17Z CardosoP $
- See Also:
- Serialized Form
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDKRandomGenerator
public JDKRandomGenerator()
setSeed
public void setSeed(int seed)
- Sets the seed of the underlying random number generator using an
int
seed.
Sequences of values generated starting with the same seeds
should be identical.
- Specified by:
setSeed
in interface RandomGenerator
- Parameters:
seed
- the seed value
setSeed
public void setSeed(int[] seed)
- Sets the seed of the underlying random number generator using an
int
array seed.
Sequences of values generated starting with the same seeds
should be identical.
- Specified by:
setSeed
in interface RandomGenerator
- Parameters:
seed
- the seed value
Copyright © 2017 CNES. All Rights Reserved.