Class FastRandomJ17

java.lang.Object
net.paulem.arcana.math.FastRandom
net.paulem.arcana.math.FastRandomJ17
All Implemented Interfaces:
Serializable, RandomGenerator

public class FastRandomJ17 extends net.paulem.arcana.math.FastRandom implements RandomGenerator, Serializable
Java 17 extension of FastRandom that implements the JDK's RandomGenerator interface, so instances can be used anywhere a standard RandomGenerator is expected, and marks itself with Serial for serialization.
See Also:
  • Constructor Details

    • FastRandomJ17

      public FastRandomJ17()
      Creates a new instance, seeded using FastRandom's default seeding strategy.
    • FastRandomJ17

      public FastRandomJ17(long seed)
      Creates a new instance seeded from the given seed value.
      Parameters:
      seed - the seed used to initialize this generator