作者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
→ s41257:var num=Math.floor(Math.random()*(279-215+1))+215 02/07 21:51
→ stu89353:謝謝>"< 02/07 23:35