Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function GetRandomCharacter()
- return string.char(math.random(1, 122))
- end
- local num = 1234567 --any number
- local temp = {}
- for letter = 1, #tostring(num) do --converts to table
- table.insert(temp, string.sub(tostring(num), letter, letter))
- end
- for _ = 1, #temp * 2 / 1.5 do --makes and scrambles numbers and characters
- table.insert(temp, math.random(1, #temp), GetRandomCharacter())
- end
- local randomness = ''
- for _, letter in pairs(temp) do
- randomness = randomness..letter
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement