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