DZone 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

Snippets has posted 5883 posts at DZone. View Full User Profile

Random Characters With Ruby

10.17.2007
| 4856 views |
  • submit to reddit
        Use for a password or salt or whatever...

(0..25).inject('') { |r, i| r << rand(93) + 33 }