獲取0~7之間的隨機數
Math.floor(Math.random()*7)
Math.floor() // 向下取整
Math.random() // 獲取0~1之間隨機小數
Math.random()*7 // 獲取0~7之間隨機數
獲取0~7之間的隨機數
Math.floor(Math.random()*7)
Math.floor() // 向下取整
Math.random() // 獲取0~1之間隨機小數
Math.random()*7 // 獲取0~7之間隨機數