|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Random | +--poker.util.Randomizer
Looks after random number generation.
Constructor Summary | |
Randomizer()
|
Method Summary | |
double |
nextDouble()
|
int |
randInt(int range)
Generate a random integer from 0 to range-1 |
void |
setExtraSeed(long sd)
|
void |
test()
|
Methods inherited from class java.util.Random |
next, nextBoolean, nextBytes, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Randomizer()
Method Detail |
public int randInt(int range)
range
- where to pick a random number frompublic double nextDouble()
nextDouble
in class java.util.Random
public void setExtraSeed(long sd)
public void test()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |