摘要: 1 .Lua生成随机数: Lua 生成随机数需要用到两个函数:math.randomseed(xx), math.random([n [, m]]) 1. math.randomseed(n) 接收一个整数 n 作为随机序列种子。2. math.random([n [, m]]) 有三种用法: 无参 阅读全文
posted @ 2014-12-23 17:38 小天_y 阅读(2508) 评论(0) 推荐(0) 编辑