|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.util.Random
|
+--TempRandom
A temporary version of java.util.Random that provides the RandInt (int n) method; should not be necessary because a similar function has been implemented since JDK 1.2, according to Sun's documentation for Random.
| Constructor Summary | |
TempRandom()
|
|
| Method Summary | |
int |
nextInt(int n)
Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence. |
| Methods inherited from class java.util.Random |
nextBoolean,
nextBytes,
nextDouble,
nextFloat,
nextGaussian,
nextInt,
nextLong,
setSeed |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public TempRandom()
| Method Detail |
public int nextInt(int n)
Precondition: n > 0
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||