Random Characters with Ruby
(0..25).inject('') { |r, i| r << rand(93) + 33 }
DZone Snippets > timmorgan > random
12364 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Tim Morgan http://timmorgan.org
(0..25).inject('') { |r, i| r << rand(93) + 33 }