Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- ## starting balance in BTC
- bal = 0.02277
- hbal = 0
- ## base bet in BTC
- sbet = 0.0000005
- bet = sbet
- ## multiplier on win
- mult = 1.32
- ## increase percent on loss: 15% is 1.15, 100% is 2, 0% is 1
- inc = 5
- ##less than: enter the number you have to roll *LESS THAN* to win. move decimal
- ##2 places to the right. example: less than 10 is less 1000 for this, 6.60 = 660
- less = 7500
- ## stop when balance is: if set to 1, stops if you get to 1 BTC
- stop = 1
- count = 0
- while (bal - bet >= 0) and (bal < stop):
- print "Balance: ",bal
- print "Bet: ",bet
- roll = random.randint(0, 10000)
- print "Roll: ",roll
- if bal > bet:
- if roll > less:
- bal = bal - bet
- count = count + 1
- bet = round(bet*inc, 8)
- else:
- profit = 0
- profit = bet * mult
- bal = bal + profit
- bet = sbet
- count = count + 1
- ## displayed way out to the right for better visibility
- print "Profit: ",profit
- print "Count: ",count
- print ""
- if bal > hbal:
- hbal = bal
- print "Final Balance: ",bal
- print "Total Number of Bets:", count
- if bal >= stop:
- print "Win"
- else:
- print "Lose"
- print "Highest Balance: ",hbal
Advertisement
Add Comment
Please, Sign In to add comment