Random 概述构造方法方法 概述 此类的实例用于生成伪随机数流 构造方法 Random r = new Random(); 方法 生成随机数 // 随机生成一个[0,10)之间的数据 int number = r.nextInt(10);