产生随机数
math.randomseed(os.time())
num=math.random(10)
print(num)
math.randomseed(os.time())
while (true) do
timenow=os.time()
if timenow~=lasttime then
print("时间--"..os.time().."随机数"..math.random(10))
end
lasttime=timenow
end
random(n)产生[1-n]之间的随机数