Created
October 15, 2014 09:02
-
-
Save halfninja/686ae65e69cc5bef0425 to your computer and use it in GitHub Desktop.
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
money = 0 | |
def get_rich | |
if Random.new.rand(100) > 90 | |
money = money + 1000000 | |
puts "Got rich." | |
true | |
else | |
false | |
end | |
end | |
def die_trying | |
puts "Died trying!" | |
exit 1 | |
end | |
get_rich or die_trying |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment