RandomUtils 随机数工具类 1.生成随机 boolean 值在这里插入代码片 内联代码片 RandomUtils.nextBoolean() 2.生成随机int 下面展示一些 内联代码片。 RandomUtils.nextInt() 3.生成指定范围内的随机 int 数 内联代码片。 RandomUtils.nextInt(1, 10000) long、float、double与int相似,这里不在列举