public class ConsistentRandom extends Object
| Constructor and Description |
|---|
ConsistentRandom(long randomSeed)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(long seed)
Returns a boolean based on the given seed.
|
boolean |
getBoolean(Object seedObject)
Returns a boolean based on the given seed object.
|
int |
getInteger(int min,
int max,
long seed)
Returns a random integer between min and max (both inclusive), based on the given seed.
|
int |
getInteger(int min,
int max,
Object seedObject)
Returns a random integer between min and max (both inclusive), based on the given seedObject.
|
public ConsistentRandom(long randomSeed)
randomSeed - the random seedpublic int getInteger(int min,
int max,
long seed)
min - the minimum valuemax - the maximum value (inclusive)seed - the random seedpublic int getInteger(int min,
int max,
Object seedObject)
min - the minimum valuemax - the maximum valueseedObject - the seed objectpublic boolean getBoolean(long seed)
seed - the seedpublic boolean getBoolean(Object seedObject)
seedObject - the seed object