Skip to content

Instantly share code, notes, and snippets.

@ucnv
Created December 14, 2009 23:53
Show Gist options
  • Save ucnv/256575 to your computer and use it in GitHub Desktop.
Save ucnv/256575 to your computer and use it in GitHub Desktop.
s = ('a'..'z').to_a + ('A'..'Z').to_a + ('0'..'9').to_a
v = 5.times.map{|i| (i == 0 ? 6 : 12).times.map{ s[(rand * (i == 0 ? 62 : 26)).floor] }.join }
puts "#{v[0]} <a href=\"http://#{v[1]}.com/\">#{v[1]}</a>, [url=http://#{v[2]}.com/]#{v[2]}[/url], [link=http://#{v[3]}.com/]#{v[3]}[/link], http://#{v[4]}.com/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment