double randomNum = Math.random();
Random random = new Random();
int randomInt = random.nextInt(100); // 生成0到99的隨機整數
int randomInt = ThreadLocalRandom.current().nextInt(0, 100); // 生成0到99的隨機整數
SecureRandom random = new SecureRandom();
int randomInt = random.nextInt(100); // 生成0到99的安全隨機整數
RandomDataGenerator randomDataGenerator = new RandomDataGenerator();
int randomInt = randomDataGenerator.nextInt(0, 100); // 生成0到99的隨機整數