1function rnd(max) 2 --lua的第1次random数不靠谱,取第3次的靠谱3 local ret=0 4 math.randomseed(os.time()) 5 for i=1,3 do 6 n = math.random(max) 7 ret=n 8 end ...
確定! 回上一頁