level 5
-- 脚本名称:测试
-- 脚本描述:
---------------------------------------------------------------
function main()
end
function suiji(tgf,tgg)
if tgf~=tgg then
s=math.random(tgf,tgg)
xfu=s
while true do
s=math.random(tgf,tgg)
if s~=xfu then
return s
end
end
else
toast("范围不能等于0")
return
end
end
2015年03月12日 04点03分
1
level 13
写得太烂了。
你在function suiji(...)里面产生了两次随机数,但是只返回了一个,这样有个鸟用。
2015年03月12日 06点03分
3
已经改了,在其它贴,我是新手,哪像你这么厉害
2015年03月12日 06点03分