Created
May 15, 2014 08:49
-
-
Save bazscott/32292dcceea01cae7c1f to your computer and use it in GitHub Desktop.
A Random Thing - Provide an array and pick one of them at random
This file contains 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
options = Array["GCD Midtown", "ShopKeep", "Rumble"] | |
puts "\n\nSelecting from: #{options}" | |
puts "And the winner is: " + options.at(Random.rand(options.size)) + "\n\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment