public class UniqueRandom extends SimpleRandom
Constructor and Description |
---|
UniqueRandom(long seed)
Creates a new Unique Random number by using the seed.
|
Modifier and Type | Method and Description |
---|---|
long |
getSeed()
Get the actual used seed.
|
boolean |
nextBoolean()
Returns the next random boolean value.
|
double |
nextDouble()
Returns the next absolute double value in the given range.
|
double |
nextDouble(boolean absval)
Returns the next double The absval boolean indicates if the double is
in the range from - to + or the absolut value.
|
float |
nextFloat()
Returns the next absolute float value in the given range.
|
float |
nextFloat(boolean absval)
Returns the next float The absval boolean indicates if the float is
in the range from - to + or the absolut value.
|
int |
nextInt(int scale)
Returns the next absolute int value in the given range.
|
int |
nextInt(int scale,
boolean absval)
Returns the next int value in the given range.
|
void |
setSeed(long seed)
Set the actual used seed.
|
getRandom
public UniqueRandom(long seed)
seed
- public int nextInt(int scale, boolean absval)
scale
- absval
- public int nextInt(int scale)
nextInt
in class java.util.Random
scale
- public float nextFloat(boolean absval)
public float nextFloat()
nextFloat
in class java.util.Random
public double nextDouble(boolean absval)
public double nextDouble()
nextDouble
in class java.util.Random
public long getSeed()
public boolean nextBoolean()
nextBoolean
in class java.util.Random
public void setSeed(long seed)
setSeed
in class java.util.Random