|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Random
java.security.SecureRandom
poker.util.Randomizer
public class 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 |
Methods inherited from class java.security.SecureRandom |
---|
generateSeed, getAlgorithm, getInstance, getInstance, getInstance, getProvider, getSeed, nextBytes, setSeed, setSeed |
Methods inherited from class java.util.Random |
---|
nextBoolean, nextFloat, nextGaussian, nextInt, nextInt, nextLong |
Methods inherited from class java.lang.Object |
---|
equals, 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 from
public double nextDouble()
nextDouble
in class java.util.Random
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |