Class RandomState
java.lang.Object
org.flag4j.rng.RandomState
Static class containing the global seed and default random number generator in Flag4j.
-
Method Summary
Modifier and TypeMethodDescriptionstatic RandomComplex
Gets a thread-local instance of ComplexRandom.static long
Gets the global seed for Flag4j.static void
setGlobalSeed
(long seed) Sets the global seed for Flag4j.
-
Method Details
-
setGlobalSeed
public static void setGlobalSeed(long seed) Sets the global seed for Flag4j.- Parameters:
seed
- The new value to use for the global seed.
-
getGlobalSeed
public static long getGlobalSeed()Gets the global seed for Flag4j.- Returns:
- The current value of the global seed.
-
getDefaultRng
Gets a thread-local instance of ComplexRandom.- Returns:
- A Random instance.
-