Last active
December 25, 2015 17:59
-
-
Save mikecarroll/7016920 to your computer and use it in GitHub Desktop.
Win a free ticket to the FastForward Health movie night, courtesy of Health Devs (http://www.meetup.com/HealthDevsNYC/)!
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
tickets = {83=>"@_mcarroll_"} | |
winner = nil | |
nojoys = [] | |
while winner.nil? do | |
number = rand(1..1000) | |
tickets.include?(number) ? winner = tickets[number] : nojoys << number | |
end | |
p nojoys | |
puts "After #{nojoys.count} draws, the winner is: #{winner}!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some rules:
(1) Leave your Twitter handle in the comments, along with a unique raffle number between 1 and 1000 (of your choosing).
(2) If you win and accept the ticket you promise that you will make a good faith effort to attend (we might disqualify you from future raffles, if you don't show).
(3) If you win, you promise to reciprocate the free ticket love from FastForward Health by Tweeting during the event with your thoughts/reflections (though you are entirely free to Tweet whatever you want).