Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tCharacters = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'}
- local sKey = ""
- local nKeys = 10000
- function keyGen()
- local key = ""
- for i=1, 9 do
- key = key..tCharacters[math.random(1,26)]..tostring(math.random(1,9))
- end
- return key
- end
- file = fs.open("keyList", "w")
- repeat
- sKey = keyGen()
- file.writeLine(tostring(sKey))
- sKey = ""
- nKeys = nKeys-1
- until nKeys == 0
- file.close()
Advertisement
Add Comment
Please, Sign In to add comment