javascript 生成0到n隨機數

randFrom0ToN=Math.floor(Math.random()*Math.floor(n));dom 以上語句便可生成 0 到 n 的隨機數(整數)隨機數
相關文章
相關標籤/搜索