摘要:
随机数产生的三种方法:1、system.currentTimeMillis()public class Demo1{ public static void main(String[] args) { System.out.println(System.currentTimeMillis()); }}显示的时间是从1970年1月1日开始到目前的时间的毫秒数;2、math.random()将会产生0.0--1.0之间的随机数API : java.lang.Math3、Random()public class Demo1{ public static void mai... 阅读全文
posted @ 2013-09-30 09:04
平林新袖
阅读(195)
评论(0)
推荐(0)

浙公网安备 33010602011771号