Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

chance = math.

random(17,40)
bethigh = true
divider = 10000000
basebet = balance/divider
nextbet = basebet
minbet = 0.00000001
maxbalance = balance
loseAmount = 0
rnd = 1
rndd = 1
strategy = 0

function dobet()

rnd=math.random(1,2)
if rnd==1 then
bethigh=true
else
bethigh=false
end

chance = math.random(17,40)
if balance>=maxbalance then
basebet=balance/divider
nextbet = basebet
minbet = 0.00000001
maxbalance = balance
loseAmount = 0
strategy = 0
else
loseAmount=maxbalance-balance
if loseAmount>(balance/2500) then
strategy = 1
end

if strategy==1 then
if chance<30 then
nextbet=loseAmount/(99/chance-2)
else
rndd=math.random(1,3)
if rndd==1 then
nextbet=loseAmount/(99/chance-2)
elseif rndd==2 then
nextbet=(loseAmount/(99/chance-1))/2
else
nextbet=(loseAmount/(99/chance-1))/3
end

end
else

nextbet = loseAmount/(99/(math.random(30,60))-1)
end
end

if nextbet<minbet then
nextbet=minbet
end

end

You might also like