Advertisement
BobMe

in

Dec 12th, 2019
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. local input = "something"
  2. local extra = "inthere"
  3.  
  4.  
  5. local output = ""
  6. local symbols = {"!","@","#","$","%","^","&","*","?"}
  7. for i=1,#input do
  8. 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
  9. output = output..string.sub(input,i,i)
  10. else
  11. local math = math.random(1,#symbols)
  12. output = output..symbols[math]
  13. end
  14. end
  15. output = output..extra
  16.  
  17. if #output >= 10 then
  18. local math = math.random(1,#symbols)
  19. local math2 = math.random(1,10)-1
  20. output = output..math..math2
  21. end
  22.  
  23. print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement