|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--java.util.Random
Pseudo-random number generation. No-arg constructor and nextInt(int) method added. (David J. Barnes)
| Constructor Summary | |
Random()
Use the current system time as the default seed. |
|
Random(long seed)
|
|
| Method Summary | |
double |
nextDouble()
Random number generator. |
int |
nextInt()
|
int |
nextInt(int n)
Return A positive value in the range 0 ... |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
| Constructor Detail |
public Random()
public Random(long seed)
| Method Detail |
public int nextInt()
public int nextInt(int n)
n - The limit (exclusive) - must be positive.
public double nextDouble()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||