Quick-cocos2d-x3.3 Study (二十一)--------- 随机数 lua 随机数 1 math.randomseed(os.time()) //相当于srand()的过程 2 i=math.random(1,6) //生成一个1到6之间的随机数