Skip to content

Instantly share code, notes, and snippets.

@myobie
Forked from eltiare/gist:49680
Created January 21, 2009 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myobie/49759 to your computer and use it in GitHub Desktop.
Save myobie/49759 to your computer and use it in GitHub Desktop.
chars = ('A'..'Z').to_a + ('a'..'z').to_a + ('0'..'9').to_a
str = (1..50).map { chars[rand(chars.size)] }.join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment