The program should be written in a way if > 99.89 then won, of course if chance is 0.1 and bethigh = true, for bethigh = false, if if <0.1 (take two decimals), i... Then there will be no mistakes. The winning number is 99.9 or higher, or 0.09 or lower.Thank you,Regards
if ( (decimal)_Bet.Roll <= (decimal)CurrentSite.maxRoll - (decimal)(_Bet.Chance) && (decimal)_Bet.Roll >= (decimal)(_Bet.Chance))
The simulations use the exact same code for logic and decisions as when it's running normally. The decisions that the bot makes is no different in a simulation than it is when it's placing bets. The visual error you see has no effect on simulations because simulated bets are never shown in the bet log. The simulations also uses the sites provably fair RNG to generate the random numbers for the bets.
Can you post an example of this happening in a simulation?
resetstats()resetseed()nextbet = 0.00000001bethigh = trueenablezz=falsechance = 0.1zacasna = 0function dobet()zacasna =math.floor(lastBet.roll * 100)if currentprofit > 0 then --only when simulation think is wonprint("last won number")print(zacasna/100)if zacasna < 9990 thenprint("wrong!! won but lost in real life")print(zacasna/100)endend end
resetstats()nextbet = 0.00000001bethigh = trueenablezz = falsechance = 0.1zacasna = 0function dobet() if lastBet.Roll == 99.89 then wintext = ''; if (win) then wintext = 'win' else wintext = 'lose' end print('Rolled: '..lastBet.Roll..'. Result:'..wintext) endzacasna =math.floor(lastBet.roll * 100)if currentprofit > 0 or win then --only when simulation think is wonif zacasna < 9990 thenprint("wrong!! won but lost in real life")print(zacasna/100)stop()endend end