poker.util
Class Randomizer

java.lang.Object
  |
  +--java.util.Random
        |
        +--poker.util.Randomizer
All Implemented Interfaces:
java.io.Serializable

public class Randomizer
extends java.util.Random

Looks after random number generation.

See Also:
Serialized Form

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

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

setExtraSeed

public void setExtraSeed(long sd)

test

public void test()