public class DoubleReuseRandom
extends java.util.Random
Constructor and Description |
---|
DoubleReuseRandom(int arrayLen)
Creates DoubleReuseRandom with the given parameters
|
DoubleReuseRandom(int arrayLen,
long seed)
Creates DoubleReuseRandom with the given parameters
|
Modifier and Type | Method and Description |
---|---|
int |
getArrayLen()
Gets the length of the array of doubles
|
double |
nextDouble()
Returns the next double from the array
|
public DoubleReuseRandom(int arrayLen)
arrayLen
- the number of doubles to generate and cycle overpublic DoubleReuseRandom(int arrayLen, long seed)
arrayLen
- the number of doubles to generate and cycle overseed
- the seed passed to the underlying Random class