|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjodd.util.MathUtil
Misc math utils.
Constructor Summary | |
MathUtil()
|
Method Summary | |
static int |
randomInt(int min,
int max)
Generates pseudo-random integer from specific range. |
static long |
randomLong(long min,
long max)
Generates pseudo-random long from specific range. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MathUtil()
Method Detail |
public static long randomLong(long min, long max)
min
- lower (inclusive) boundarymax
- higher (exclusive) boundary
public static int randomInt(int min, int max)
min
- lower (inclusive) boundarymax
- higher (exclusive) boundary
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |