|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--Utils.StaticRandom
Class that defines a random number generator. It is useful to have a greater control on the seed.
| Field Summary | |
|---|---|
private static java.util.Random |
random
|
| Constructor Summary | |
|---|---|
StaticRandom()
|
|
| Method Summary | |
|---|---|
static double |
nextDouble()
|
static float |
nextFloat()
|
static int |
nextInt(int max)
|
static void |
setSeed(long seed)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static java.util.Random random
| Constructor Detail |
public StaticRandom()
| Method Detail |
public static final void setSeed(long seed)
public static final float nextFloat()
public static final double nextDouble()
public static final int nextInt(int max)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||