📜  两个数字之间的随机java代码示例

📅  最后修改于: 2022-03-11 14:52:40.558000             🧑  作者: Mango

代码示例5
Random random = new Random();
random.nextInt(1, 10); // Output : random int between 1 and 10