摘要: public class Test { public static void main(String[] args) { /** *Random类: * 创建随机数对象有2种,一种是添加参数,也叫种子,这种方式创建出来的数,刷新后不会改变,相当于常量了 * 主要方法: nextInt(int n)产生0到n之间的随机数... 阅读全文
posted @ 2019-06-04 16:18 yangxiaohui227 阅读(453) 评论(0) 推荐(0)