Class ChanceUtils


  • public final class ChanceUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double getRandomDouble​(double min, double max)  
      static int getRandomNumber​(int max, int min)  
      static boolean roll​(int maximalChance)  
      • Methods inherited from class java.lang.Object

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

      • roll

        public static boolean roll​(int maximalChance)
      • getRandomNumber

        public static int getRandomNumber​(int max,
                                          int min)
      • getRandomDouble

        public static double getRandomDouble​(double min,
                                             double max)