Created
February 7, 2009 15:52
-
-
Save jbgutierrez/59913 to your computer and use it in GitHub Desktop.
Magnus Holm’s solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate a random string of length 4 or more consisting of only the following | |
set of characters: a-z, A-Z, 0-9 | |
(0..4).map{rand(?z).chr[/[^_\W]/]||redo}.join |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment