Skip to content

Instantly share code, notes, and snippets.

@mccv
Created August 21, 2012 00:36
Show Gist options
  • Save mccv/3409908 to your computer and use it in GitHub Desktop.
Save mccv/3409908 to your computer and use it in GitHub Desktop.
def mrrrrrmmmmmmrrrr
str = ''; upper = true; m = true
(rand(30) + 30).times do
upper = !upper if rand < 0.3
m = !m if rand < 0.3
str << lambda {|ch| upper ? ch.upcase : ch}.call(m ? 'm' : 'r')
end
str
end
def printmr
while(1) do
`say -v Ralph #{mrrrrrmmmmmmrrrr}`
end
end
printmr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment