Math.random(1000) ,1000在括号里面,actionscript,在外面Math.random()*1000,这样我明白是什么意思,在里面呢?

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/06 12:04:52
Math.random(1000) ,1000在括号里面,actionscript,在外面Math.random()*1000,这样我明白是什么意思,在里面呢?

Math.random(1000) ,1000在括号里面,actionscript,在外面Math.random()*1000,这样我明白是什么意思,在里面呢?
Math.random(1000) ,1000在括号里面,actionscript,
在外面Math.random()*1000,这样我明白是什么意思,在里面呢?

Math.random(1000) ,1000在括号里面,actionscript,在外面Math.random()*1000,这样我明白是什么意思,在里面呢?
没有Math.random(1000)这种写法,Math.random()会生成0-1之间的随机数字,再乘以1000就是0-1000之间的随机数

随机数