Class RandomUtil


  • public class RandomUtil
    extends java.lang.Object
    Random utility class
    • Constructor Summary

      Constructors 
      Constructor Description
      RandomUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double get()  
      static int get​(int max)  
      static int get​(int min, int max)  
      static void temporaryWithSeed​(long seed, java.lang.Runnable function)  
      • Methods inherited from class java.lang.Object

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

      • RandomUtil

        public RandomUtil()
    • Method Detail

      • get

        public static int get​(int min,
                              int max)
      • get

        public static int get​(int max)
      • get

        public static double get()
      • temporaryWithSeed

        public static void temporaryWithSeed​(long seed,
                                             java.lang.Runnable function)