poker.util
Class Randomizer

java.lang.Object
  extended by java.util.Random
      extended by java.security.SecureRandom
          extended by poker.util.Randomizer
All Implemented Interfaces:
java.io.Serializable

public class Randomizer
extends java.security.SecureRandom

Looks after random number generation.

Version:
1.1.1
Author:
Aaron Davidson
See Also:
Serialized Form

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

Randomizer

public Randomizer()
Method Detail

randInt

public int randInt(int range)
Generate a random integer from 0 to range-1

Parameters:
range - where to pick a random number from
Returns:
the random number

nextDouble

public double nextDouble()
Overrides:
nextDouble in class java.util.Random