Skip to content

Instantly share code, notes, and snippets.

@takkanm
Created May 10, 2013 23:45
Show Gist options
  • Save takkanm/5558278 to your computer and use it in GitHub Desktop.
Save takkanm/5558278 to your computer and use it in GitHub Desktop.
ken = 'けん'
prefixes = %w(さん くん ちゃん)
loop do
if (ken + (prefix = prefixes.sample)).size < 140
ken << prefix
else
break
end
end
puts ken + '…'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment