Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Description: Program that aggressively gambles with itself
Submitted on December 31, 2019 at 06:32 AM

New Paste 1 (Python)

import random
    
def aggressiveGambling(moneyOfGambler):
    numberOfBets=0
    currentBetSize=1
    while True:
        numberOfBets+=1
        if random.choice(["won","lost"])=="won":
            print("Money owned before the bet:$"+str(moneyOfGambler),"  Money won:$"+str(currentBetSize))
            moneyOfGambler+=currentBetSize
            currentBetSize=1
        else:
            print("Money owned before the bet:$"+str(moneyOfGambler),"  Money lost:$"+str(currentBetSize))
            moneyOfGambler-=currentBetSize
            currentBetSize*=2
            if moneyOfGambler<currentBetSize:
                print("Not enough money to continue the game. Needed to bet $"+str(currentBetSize),", while having only $"+str(moneyOfGambler),"Total number of bets:",numberOfBets)
                break
            
while True:
    aggressiveGambling(int(input("Initial money(in dollars):")))