function generateIP() a,b,c,d = math.random(1,255),math.random(1,255),math.random(1,255),math.random(1,255) return a..":"..b..":"..c..":"..d end f = io.open("Hai.txt","w") f:close() f = io.open("Hai.txt","a") tab = {} for i=1,100000 do f:write(i.." ("..generateIP()..")\n") end f:close()