Skip to content

Instantly share code, notes, and snippets.

@cronin101
Created October 26, 2013 15:51
Show Gist options
  • Select an option

  • Save cronin101/7170973 to your computer and use it in GitHub Desktop.

Select an option

Save cronin101/7170973 to your computer and use it in GitHub Desktop.
Testing random name generation for an anonymised chat client. Sometimes random selection works very nicely.
λ server git:(client/server-model) ✗ ruby pearserver.rb
# Connection from 1
<Ryan White(1)> yo
# Connection from 2
# Connection from 3
<James Maverick(2)> hey
<Daniel Harris(3)> what's up?
# Connection from 4
<Daniel Lannister(4)> hey
# Connection from 5
<Walter Heisenberg(5)> yo
<Walter Heisenberg(5)> anybody want some meth?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment