Last active
October 6, 2015 18:56
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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