Skip to content

Instantly share code, notes, and snippets.

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