仅在最小值为1的情况下有效。如果最小值为2,并且我们仍然使用 Math.floor(Math.random() * 6) + 2 意味着如果 Math.random() 结果为0.99 ,则我们的随机值为 7.
確定! 回上一頁