Package nz.org.riskscape.engine
Class RandomSingleton
java.lang.Object
nz.org.riskscape.engine.RandomSingleton
A global source of randomness for a riskscape process to aid reproducability of results
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
RandomSingleton
public RandomSingleton()
-
-
Method Details
-
get
- Returns:
- a Random object
-
setSeed
public static void setSeed(long newSeed) Replace the RANDOM object with a new one with the given seed.
-
getSeed
- Returns:
- the random seed that was last used with
setSeed(long)
. Will be null if using a default, randomly seeded Random object.
-