public class PseudoRandom
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static double |
randDouble()
Returns a random double value using the PseudoRandom generator.
|
static double |
randDouble(double minBound,
double maxBound)
Returns a random double value between a minimum bound and a maximum bound
using the PseudoRandom generator.
|
static int |
randInt()
Returns a random int value using the Java random generator.
|
static int |
randInt(int minBound,
int maxBound)
Returns a random int value between a minimum bound and maximum bound using
the PseudoRandom generator.
|
public static int randInt()
public static double randDouble()
public static int randInt(int minBound, int maxBound)
minBound
- The minimum bound.maxBound
- The maximum bound.
Return A pseudo random int value between minBound and maxBound.public static double randDouble(double minBound, double maxBound)
minBound
- The minimum bound.maxBound
- The maximum bound.