本帖最后由 我为你着迷 于 2014-8-8 17:22 编辑
- class MathDemo
- {
- public static void main(String[] args)
- {
- for(int x=0;x<10;x++)
- {
- double d=Math.random()*10
- System.out.println(d);
- }
- }
- }
复制代码 double d=Math.random()*10 大家好,这句,有点不懂,这怎么成了0到10了呢。*这不是乘号嘛。今天好郁闷
啊,看视频好多都没有理解,唉。
|
|