摘要: 列举两种常用的: 第一种:new Random(),nextInt(10),范围是1~10,以括号里面的值限制范围。 1 public class Test { 2 public static void main(String[] args) { 3 Random random = new Rand 阅读全文
posted @ 2020-12-14 16:25 蹦蹦跳的扎克 阅读(683) 评论(0) 推荐(0)