Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local input = "something"
- local extra = "inthere"
- local output = ""
- local symbols = {"!","@","#","$","%","^","&","*","?"}
- for i=1,#input do
- if string.sub(input,i,i) ~= "a" and string.sub(input,i,i) ~= "e" and string.sub(input,i,i) ~= "i" and string.sub(input,i,i) ~= "o" and string.sub(input,i,i) ~= "u" then
- output = output..string.sub(input,i,i)
- else
- local math = math.random(1,#symbols)
- output = output..symbols[math]
- end
- end
- output = output..extra
- if #output >= 10 then
- local math = math.random(1,#symbols)
- local math2 = math.random(1,10)-1
- output = output..math..math2
- end
- print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement