Skip to content

Instantly share code, notes, and snippets.

@bpo
Created January 15, 2010 21:09
Show Gist options
  • Save bpo/278407 to your computer and use it in GitHub Desktop.
Save bpo/278407 to your computer and use it in GitHub Desktop.
#! /usr/bin/env ruby -w
o = ['!','@','#','$','%','&','*',(0..9),('a'..'z'),('A'..'Z')].map{|i| i.to_a}.flatten;
puts (0..50).map{ o[rand(o.length)] }.join;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment