Class Randomizer

java.lang.Object
  extended by Randomizer

public class Randomizer
extends Object

Provide control over the randomization of the simulation.

Version:
2011.07.31
Author:
David J. Barnes and Michael Kölling

Constructor Summary
Randomizer()
          Constructor for objects of class Randomizer
 
Method Summary
static Random getRandom()
          Provide a random generator.
static void reset()
          Reset the randomization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Randomizer

public Randomizer()
Constructor for objects of class Randomizer

Method Detail

getRandom

public static Random getRandom()
Provide a random generator.

Returns:
A random object.

reset

public static void reset()
Reset the randomization. This will have no effect if randomization is not through a shared Random generator.