第一頁
返回
繼續
最後一頁
概覽
圖形
亂數
要求電腦隨機選擇一個數字,通常用在電動玩具或模擬上
使用 Math.random()
如果要取整數,可以用
Math.floor(Math.random()*6)+1
參考demo9a