local sz = require("sz")local socket = require("szocket")local function get_seed() local t = string.format("%f", socket.gettime()) local st = string.sub(t, string.find(t, "%.") + 1, -1) return tonumber(string.reverse(st))end math.randomseed(get_seed()) --获取随机种子randnumber=string.format("%d%d",math.random(0,9),math.random(0,9))--randnumber为随机数字,怎么输入的话不知道你的代码,只能帮你到这儿了搜一下:触动精灵随机数字。