ThreadLocalRandom.current().nextInt()
ThreadLocalRandom current = ThreadLocalRandom.current();
current.nextInt(18); // 随机获取 0 ~ 18 中的数,不包括18
current.nextInt(16, 18) // 随机获取 16 ~ 18 中的数,不包括18
ThreadLocalRandom.current().nextInt()
ThreadLocalRandom current = ThreadLocalRandom.current();
current.nextInt(18); // 随机获取 0 ~ 18 中的数,不包括18
current.nextInt(16, 18) // 随机获取 16 ~ 18 中的数,不包括18