类 RandomUtil

java.lang.Object
tech.mhuang.pacebox.core.random.RandomUtil

public class RandomUtil extends Object
随机数工具类
从以下版本开始:
1.0.0
作者:
mhuang
  • 构造器详细资料

    • RandomUtil

      public RandomUtil()
  • 方法详细资料

    • getInRange

      public static int getInRange(int min, int max)
      根据最小最大范围值获取随机数
      参数:
      min - 最小值
      max - 最大值
      返回:
      返回随机数
    • nextInt

      public static int nextInt()
      获取随机值
      返回:
      随机数