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 tab = {} for i=1,100000 do tab[i] = generateIP() end print("done") f=io.open("hai.txt","w") f:write() f:close() print("file cleared/created") buf = "" f=io.open("hai.txt","a") for k,v in pairs(tab) do buf = k.." ("..v..")\n" f:write(buf) end print("writing") f:close()