mako5.util
Class RandomGen

java.lang.Object
  extended by mako5.util.RandomGen

public class RandomGen
extends Object

Provides a generic random generator to pull from.

Version:
03-Mar 2006, 24-May 2006
Author:
Paul Jarrett

Constructor Summary
RandomGen()
           
 
Method Summary
static Random getInstance()
          Returns the current random generator instance.
static boolean hasInstance()
          Returns true if this has a current instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomGen

public RandomGen()
Method Detail

hasInstance

public static boolean hasInstance()
Returns true if this has a current instance.

Returns:
true if this has an instance of Random.
Since:
03-Mar 2006

getInstance

public static Random getInstance()
Returns the current random generator instance.

Returns:
the instance of this Random singleton
Since:
03-Mar 2006