在lua中,如果我们需要随机数的时候,会使用到math.random,为了避免伪随机我们的一般编写方式如下:-- 获取当前系统时间(秒)作为随机种子math.randomseed(os.time())-- ...
確定! 回上一頁