Created
January 20, 2009 21:47
-
-
Save eltiare/49680 to your computer and use it in GitHub Desktop.
Random charactar generator for Ruby
This file contains hidden or 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
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