lua的随机函数、可在cocos2d_x + lua中直接使用 math.randomseed(os.time()) //相当于srand()的过程i=math.random(1,6) //生成一个1到6之间的随机数