Class RandomSupplier


  • public final class RandomSupplier
    extends java.lang.Object
    Provides random number generater constructor utilities.

    This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private RandomSupplier()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.function.Supplier<java.util.Random> platformDefault()
      Returns the platform default for random number generation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RandomSupplier

        private RandomSupplier()
    • Method Detail

      • platformDefault

        public static java.util.function.Supplier<java.util.Random> platformDefault()
        Returns the platform default for random number generation.

        The underlying implementation attempts to use ThreadLocalRandom on platforms where this is the most efficient.