|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--objectdraw.RandomIntGenerator
Generates a random integer between two values.
Constructor Summary | |
RandomIntGenerator(int min,
int max)
Constructs a new RandomInt. |
Method Summary | |
static void |
main()
|
int |
nextValue()
Retrieves the integer value of the RandomInt. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RandomIntGenerator(int min, int max)
min
- the minimum value (inclusive)max
- the maximum value (exclusive)Method Detail |
public int nextValue()
public static void main()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |