第一頁 返回 繼續 最後一頁 概覽 圖形

亂數

使用 Math.random()

如果要取整數,可以用

Math.floor(Math.random()*6)+1

參考demo9a