Advertisement
BobMe

Word Generator

Apr 25th, 2019
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. -- Unique username generator
  2.  
  3. -- What does this even do lmao? Well, It generates a word that no one has ever seen or even attempted to pronounce. You might even find a neat little name that you'd like to try some day. Or you might stay unlucky and won't find anything.
  4.  
  5. -- INSTRUCTIONS : below the function, call the function with a random number, each number generates a different name if ran with default Lua.
  6.  
  7.  
  8. function CreateWord(Seed,By)
  9. --AmountOfVowels = 3
  10.  
  11. Vowels = {"a","e","i","o","u"}
  12.  
  13. Letters = {"b", "bb", "c", "d", "f", "g", "gg", "h", "j", "k", "l", "ll", "m", "n", "p", "pp", "q", "r", "s", "t", "v", "w", "x", "y", "z"}
  14.  
  15. LetterStarts = {"Br", "Fr", "M", "Cr", "Kr", "Zy", "Zr", "Pr", "Out", "Tr", "Ro", "Yet", "Hel", "Ker", "Ket", "Kel", "Kep", "Wer", "Wet", "Wel", "Wep", "Qr", "Qsr", "Qre", "Jr", "Je", "Jo","Comp"}
  16.  
  17. LetterEnds = {"ek", "rape", "eck", "pe", "rd", "rt", "ck", "st", "ty", "ge", "cy", "llow", "nt", "ct", "r", "ter", "can", "fer", "feir", "ker", "ler", "head", "ways", "one", "thing", "swer", "ther", "roach", "ound", "ply", "gue", "rive","igger", "d", "sume", "come", "rch", "ch", "ld", "zen", "ss", "al", "mon", "tor", "wn", "ge", "rgy", "tal", "tor", "fy", "blox"}
  18.  
  19. word = ""
  20. kek = 0
  21.  
  22. while kek <= By do
  23. kek = kek + 1
  24. for i=1,Seed do
  25. vo1 = math.random(1,#Vowels)
  26. vo2 = math.random(1,#Vowels)
  27. vo3 = math.random(1,#Vowels)
  28. vo4 = math.random(1,#Vowels)
  29. let1 = math.random(1,#Letters)
  30. let2 = math.random(1,#Letters)
  31. let3 = math.random(1,#Letters)
  32. let4 = math.random(1,#Letters)
  33. lets1 = math.random(1,#LetterStarts)
  34. lets2 = math.random(1,#LetterStarts)
  35. lets3 = math.random(1,#LetterStarts)
  36. lets4 = math.random(1,#LetterStarts)
  37. lete1 = math.random(1,#LetterEnds)
  38. lete2 = math.random(1,#LetterEnds)
  39. lete3 = math.random(1,#LetterEnds)
  40. lete4 = math.random(1,#LetterEnds)
  41. end
  42. end
  43.  
  44. --Create the word
  45.  
  46. word = word..LetterStarts[lets1]..Vowels[vo1]..Letters[let1]..Vowels[vo2]..Letters[let2]..Vowels[vo3]..LetterEnds[lete1]
  47. return word
  48. end
  49.  
  50.  
  51. for i=1,10000 do
  52. print(i.." | "..CreateWord(1,14))
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement