摘要: 两种Random函数 1、java.lang.Math.Random Math.random() 返回值为正的double类型,【0,1)。 (int)(Math.random() * 100) + 1 返回[1-100] 注意,下式结果为0、 (int)Math.random() * 3 2、ja 阅读全文
posted @ 2020-04-21 14:59 海绵爱上星 阅读(237) 评论(0) 推荐(0) 编辑