org.apache.commons.math.random
Class JDKRandomGenerator
java.lang.Object
java.util.Random
org.apache.commons.math.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:
- $Revision: 796543 $ $Date: 2009-07-21 17:32:38 -0400 (Tue, 21 Jul 2009) $
- See Also:
- Serialized Form
Field Summary |
private static long |
serialVersionUID
Serializable version identifier. |
Method Summary |
void |
setSeed(int seed)
Sets the seed of the underyling random number generator using an
int seed. |
void |
setSeed(int[] seed)
Sets the seed of the underyling 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 |
serialVersionUID
private static final long serialVersionUID
- Serializable version identifier.
- See Also:
- Constant Field Values
JDKRandomGenerator
public JDKRandomGenerator()
setSeed
public void setSeed(int seed)
- Sets the seed of the underyling 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 underyling 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 (c) 2003-2010 Apache Software Foundation