摘要:
一、用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
_小龙人
阅读(507)
评论(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
_小龙人
阅读(1413)
评论(0)
推荐(0)