|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectobjectdraw.RandomIntGenerator
A generator that provides random integer between two values upon demand
Constructor Summary | |
RandomIntGenerator(int min,
int max)
Constructs a new RandomInt that can generate values v such that min <= v <= max. |
Method Summary | |
int |
nextValue()
Retrieves a new integer value from the generator. |
java.lang.String |
toString()
produce String description of this random number generator |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RandomIntGenerator(int min, int max)
min
- the minimum valuemax
- the maximum valueMethod Detail |
public int nextValue()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |