Class RandomUtil

java.lang.Object
net.guizhanss.guizhanlib.utils.RandomUtil

@Deprecated(since="2.0.0", forRemoval=true) public final class RandomUtil extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
请使用 RandomUtil 代替
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    randomDouble(double min, double max)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static int
    randomInt(int min, int max)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static boolean
    testChance(int chance, int bound)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

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

    • randomInt

      public static int randomInt(int min, int max)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • randomDouble

      public static double randomDouble(double min, double max)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • testChance

      public static boolean testChance(int chance, int bound)
      Deprecated, for removal: This API element is subject to removal in a future version.