Skip to content

Instantly share code, notes, and snippets.

@porras
Last active October 6, 2015 18:56
Show Gist options
  • Save porras/d9bba0378ef8cb3d22eb to your computer and use it in GitHub Desktop.
Save porras/d9bba0378ef8cb3d22eb to your computer and use it in GitHub Desktop.
Small ruby script to get a random name from a list (for a raffle or something like that)
# Usage: Save the file somewhere, in a terminal run:
# ruby <path/to/file.rb>
#
puts DATA.each_line.to_a.sample
__END__
Write
The
Names
Here
One
Per
Line
(Spaces or other characters allowed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment