Advertisement
BobMe

Random character(string) combiner thing

Sep 10th, 2019
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. random_char = {"weird ","Bob ","ate ","drank ","ass ","milk ","oranges ","I ","for ","everyday ","24/7 ","dick ","sporting ","goods ","cheerfully ","screamed ","at ","died ","with ","James ","April ","in ","under ","a women ","a man ","an undefined gender ","Wednesday ","without ","cheese ","cheesy ","got ","and ","and then ","but then ","exploded ","oofed ","sewer ","a ","pencil ","school boy ","school girl ","briefcase ","courtroom ","their house ","in bed ","in the shower "}
  2. line = 2000
  3. char = 6
  4.  
  5.  
  6. function randomchar()
  7. local tab = random_char
  8. local ran = math.random(1,#random_char)
  9. return random_char[ran]
  10. end
  11.  
  12. local countup = 0
  13.  
  14. while countup <= line-1 do
  15. local var = ""
  16. for i=1,char do
  17. var = var..randomchar()
  18. end
  19. print((countup+1).." | "..var)
  20. countup = countup + 1
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement