Advertisement
Guest User

Untitled

a guest
May 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. import random
  2. import time
  3.  
  4. chance_win = 70
  5. avgOdds = 1.9
  6. def chance(c):
  7. return random.randint(1,100) <= c
  8. amount = .25 #starting btc
  9. bet_amount=.05
  10. counter = 0
  11. while True:
  12. amount -= bet_amount
  13. if chance(chance_win):
  14. amount += (avgOdds-1)*bet_amount + bet_amount
  15. counter += 1
  16. if(counter % 10 == 0):
  17. print ('current amount: ',amount,' bet #: ',counter)
  18. time.sleep(1)
  19. if(counter == 1000):
  20. exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement