Skip to content

Instantly share code, notes, and snippets.

@mhat
Created January 7, 2011 23:01
Show Gist options
  • Save mhat/770261 to your computer and use it in GitHub Desktop.
Save mhat/770261 to your computer and use it in GitHub Desktop.
ruby dongmaker.rb number_of_dongst dong_shaft_size dong_jizz_size
BALLS = %w{ 8 B & o O }
HEADS = %w{ D b C > }
JIZZ = '~'
SHAFT = '='
ARGV[0].to_i.times do
balls = BALLS[ rand(BALLS.size) ]
head = HEADS[ rand(HEADS.size) ]
shaft = SHAFT * ((ssize = rand(ARGV[1].to_i)) == 0 ? 1 : ssize)
jizz = JIZZ * ((jsize = rand(ARGV[1].to_i)) == 0 ? 1 : jsize)
puts "#{balls}#{shaft}#{head}#{jizz}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment