Guest User

Untitled

a guest
Feb 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. def rand_btw(min, max); rand(max-min)+min; end
  2. chars = ("a".."z").to_a
  3. word = ""
  4. rand_btw(6,15).times { word << chars.delete_at(rand(chars.length)) }
  5.  
  6. p word
Add Comment
Please, Sign In to add comment