Class RandomState

java.lang.Object
org.flag4j.rng.RandomState

public final class RandomState extends Object
Static class containing the global seed and default random number generator in 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

      public static RandomComplex getDefaultRng()
      Gets a thread-local instance of ComplexRandom.
      Returns:
      A Random instance.