作者stu89353 (Cat)
看板Flash
标题[问题] 乱数问题
时间Thu Feb 7 18:20:47 2013
不好意思,想请问如果想要
乱数是在215到279之间跳
该怎麽写才好呢?
我自己是写
var num=Math.floor(Math.random()*??)+??;
但不晓得??该填甚麽数字才好
--
Sent from my Android
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 101.10.116.126
1F:→ s41257:var num=Math.floor(Math.random()*(279-215+1))+215 02/07 21:51
2F:→ stu89353:谢谢>"< 02/07 23:35