Created
March 30, 2016 04:53
-
-
Save mattweidner/052465782be1342f1d6b984e877423d0 to your computer and use it in GitHub Desktop.
Revisions
-
mattweidner created this gist
Mar 30, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ #!/usr/bin/ruby # Source characters array range = [*'0'..'9',*'A'..'Z',*'a'..'z'] puts "#{range}" # Build a 20 char random string from the source array. a = Array.new(20) { range.sample }.join puts "#{a}"