Skip to content

Instantly share code, notes, and snippets.

@bazscott
Created May 15, 2014 08:49
Show Gist options
  • Save bazscott/32292dcceea01cae7c1f to your computer and use it in GitHub Desktop.
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
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