java.lang.Object
com.yuzhyn.azylee.core.datas.numbers.RandomTool

public class RandomTool extends Object
  • 构造器详细资料

    • RandomTool

      public RandomTool()
  • 方法详细资料

    • get

      public static int get(int min, int max)
      通过范围区间,获取整数随机数
      参数:
      min - 最小值(包含)
      max - 最大值(包含)
      返回:
      返回
    • getBool

      public static boolean getBool()
      随机开关(是/否)
      返回:
      返回布尔值
    • main

      public static void main(String[] args)