一、构造方法 构造方法名 备注 Random() Random(long seed) 如果种子一样,会生成同一个数 二、方法 方法名 作用 int nextInt() 返回正负20亿的随机数 int nextInt(int n) 返回 [0, n) 之间的随机数 double nextDouble() 返回 [0, 1) 之间的随机数 eg. class randomTest{ public static void main