lua 随机数 1 math.randomseed(os.time()) //相当于srand()的过程 2 i=math.random(1,6) //生成一个1到6之间的随机数 转载于:https://www.cnblogs.com/dudu580231/p/4835107.html