Last active
November 16, 2021 06:44
-
-
Save jackowayed/d5c4c99a123150d2b0d24c3d2a233e8d 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
import random | |
def play(start): | |
roll = random.randint(1, 6) | |
if roll == 1: | |
return start / 2 | |
if roll == 6: | |
return start * 2 | |
return start * 1.05 | |
amt = 100 | |
for _ in range(300): | |
amt = play(amt) | |
print(amt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment