Lua 生成随机数需要用到两个函数:math.randomseed(xx), math.random([n [, m]]) math.randomseed(n)用法:接收一个整数n作为随即序列的种子。
確定! 回上一頁