摘要: /** * 生成[1, max]之间的随机数 */ public static Integer getRandomNumber(Integer max) { Random rd = new Random(); return rd.nextInt(max) + 1; } /** * 生成[x, y]之间的随机数 * @return [x, y]之间的随机数 */... 阅读全文
posted @ 2018-08-31 10:50 裸奔的太阳 阅读(4103) 评论(0) 推荐(0) 编辑