Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- import time
- chance_win = 70
- avgOdds = 1.9
- def chance(c):
- return random.randint(1,100) <= c
- amount = .25 #starting btc
- bet_amount=.05
- counter = 0
- while True:
- amount -= bet_amount
- if chance(chance_win):
- amount += (avgOdds-1)*bet_amount + bet_amount
- counter += 1
- if(counter % 10 == 0):
- print ('current amount: ',amount,' bet #: ',counter)
- time.sleep(1)
- if(counter == 1000):
- exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement