mako5.util
Class RandomGen
java.lang.Object
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
Method Summary |
static Random |
getInstance()
Returns the current random generator instance. |
static boolean |
hasInstance()
Returns true if this has a current instance. |
RandomGen
public RandomGen()
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