Created
December 12, 2012 20:18
-
-
Save WA9ACE/4271188 to your computer and use it in GitHub Desktop.
Produces random alphanumeric password.
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
#!/usr/bin/env ruby | |
range = (1..9).to_a + ('a'..'z').to_a + ('A'..'Z').to_a | |
password = range.sample(10).join | |
puts password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment