|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.util.RandomUtil
public class RandomUtil
System-wide random number generator.
| Constructor Summary | |
|---|---|
RandomUtil()
|
|
| Method Summary | |
|---|---|
static long |
getRandomLong()
Returns the next random long. |
static double |
nextDouble()
Returns the next random double between 0 and 1 |
static int |
nextInt(int n)
Returns the next random int. |
static void |
setTestSeed(long seed)
Sets the specific seed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomUtil()
| Method Detail |
|---|
public static long getRandomLong()
public static int nextInt(int n)
public static double nextDouble()
public static void setTestSeed(long seed)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||