Class RandomGeneratorFactory


  • public class RandomGeneratorFactory
    extends java.lang.Object
    Utilities for creating RandomGenerator instances.
    Since:
    3.3
    • Method Detail

      • createRandomGenerator

        public static RandomGenerator createRandomGenerator​(java.util.Random rng)
        Creates a RandomDataGenerator instance that wraps a Random instance.
        Parameters:
        rng - JDK Random instance that will generate the the random data.
        Returns:
        the given RNG, wrapped in a RandomGenerator.
      • convertToLong

        public static long convertToLong​(int[] seed)
        Converts seed from one representation to another.
        Parameters:
        seed - Original seed.
        Returns:
        the converted seed.