|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmetal.util.PseudoRandom
public class PseudoRandom
Class representing a pseudo-random number generator
Method Summary | |
---|---|
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. |
static void |
setRandomGenerator(IRandomGenerator generator)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setRandomGenerator(IRandomGenerator 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |