run in this way,   no why,   only for you heart
CSDN博客(点击进入) CSDN
51CTO(点击进入) 51CTO
摘要: 一、用Math包中方法实现1.随机产生四位数[1000,9999] num=(int)(Math.random()*9000)+1000; Math.random()方法是产生double型[0,1)的数据,[0,1)*9000=[1,9001),用int类型强转后便... 阅读全文
posted @ 2017-07-19 23:25 _小龙人 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 一、用Math包中方法实现1.随机产生四位数[1000,9999] num=(int)(Math.random()*9000)+1000; Math.random()方法是产生double型[0,1)的数据,[0,1)*9000=[1,9001),用i... 阅读全文
posted @ 2017-07-19 23:25 _小龙人 阅读(1027) 评论(0) 推荐(0) 编辑