When randomizing it doesnt ask for the 2FA-Code. Did you do this intentionally as a simple block so that one has to disable and enable randomize 2FA when one wants to use it?
I implemented the ability to 2FA-lock your seeds a long time ago when someone asked for it because they were worried they would accidentally hit the keyboard shortcut for 'randomize' and lose their seed. I copied the functionality from the 2FA-lock on gambling - if the lock is on you can't gamble. If you want to gamble, remove the 2FA-lock. I think the people who are worried about accidentally changing their seed will be changing it rarely enough that editing their 2FA settings to do so isn't a big deal.
I have a probably stupid question. When you want to go for a certain amount to win, lets say 1000 clams, is it then a difference when you do one big bet with a high percent chance instead many small bets with the minimum chance? Is there a difference in propability to win the 1k clam? Might be too late today for me only.
Your question could use some tightening up. Are you looking for a certain net profit when you say "certain amount to win"? So if I start with 1000 CLAMs and want to get it to 2000 CLAMs, say. If I bet all in at 49.5% I have a 49.5% chance of profiting by 1000 CLAMs. That case is clear.
But what if I make a bunch of bets at 1% chance, aiming to reach 2000 CLAMs. Is that what you're saying? My first bet would be around 10.204 CLAMs at 1% to make a profit of 1000 CLAMs. But if it lost, my 2nd bet would need to be a little bigger, since now I need to recover the 10.204 CLAMs I just lost, as well as win an extra 1000 CLAMs. So the 2nd bet would need to be around 10.308 CLAMs, then 10.413 CLAMs, and so on. The amount rises exponentially.
I believe you have a better expectation doing the 1% bets than the all-in 49.5% bet. Because your expected total stake is less than in the 49.5% case, and so your expected loss is correspondingly less.
It turns out you can afford to bet 68 times at 1% and get to 2000 CLAMs if any of them win. If none of them win, you have 5.56408786 left over, and give up trying.
Each of the 68 tries has a 0.99 probability of failure.
You lose all 68 bets with a probability of 0.99^68 = 0.504885888
You win, and reach your goal with probability 0.495114111
So amazingly, your probability of success is greater than with the single all-in bet (which is 0.495) AND even when you fail you have 5.5 CLAMs left over!
In the single-bet case, your expected profit is -1% of 1000, or -10 CLAMs. That's hopefully clear. We can calculate it by summing the product of probabilities and profits:
>>> 0.495 * 1000 + 0.505 * -1000
-10.0
In the 68 bets at 1% case, your expected profit is [p(loss) * profit_on_loss + p(win) * profit_on_win]:
>>> (0.99 ** 68) * (5.56408786 - 1000) + (1 - 0.99 ** 68) * 1000
-6.96254812965384
So it is considerably better. You expect to lose only 6.96 CLAM instead of 10.00 CLAM.
Here are the 68 bets we can afford to make:
bet 1: balance is 1000.00000000 so we stake 10.20408163
bet 2: balance is 989.79591837 so we stake 10.30820491
bet 3: balance is 979.48771345 so we stake 10.41339068
bet 4: balance is 969.07432277 so we stake 10.51964977
bet 5: balance is 958.55467301 so we stake 10.62699313
bet 6: balance is 947.92767987 so we stake 10.73543184
bet 7: balance is 937.19224804 so we stake 10.84497706
bet 8: balance is 926.34727097 so we stake 10.95564009
bet 9: balance is 915.39163088 so we stake 11.06743234
bet 10: balance is 904.32419854 so we stake 11.18036532
bet 11: balance is 893.14383322 so we stake 11.29445068
bet 12: balance is 881.84938254 so we stake 11.40970018
bet 13: balance is 870.43968236 so we stake 11.52612569
bet 14: balance is 858.91355667 so we stake 11.64373922
bet 15: balance is 847.26981746 so we stake 11.76255288
bet 16: balance is 835.50726457 so we stake 11.88257893
bet 17: balance is 823.62468564 so we stake 12.00382974
bet 18: balance is 811.62085590 so we stake 12.12631780
bet 19: balance is 799.49453810 so we stake 12.25005573
bet 20: balance is 787.24448237 so we stake 12.37505630
bet 21: balance is 774.86942607 so we stake 12.50133239
bet 22: balance is 762.36809368 so we stake 12.62889700
bet 23: balance is 749.73919668 so we stake 12.75776330
bet 24: balance is 736.98143338 so we stake 12.88794456
bet 25: balance is 724.09348882 so we stake 13.01945420
bet 26: balance is 711.07403463 so we stake 13.15230577
bet 27: balance is 697.92172886 so we stake 13.28651297
bet 28: balance is 684.63521589 so we stake 13.42208963
bet 29: balance is 671.21312625 so we stake 13.55904973
bet 30: balance is 657.65407652 so we stake 13.69740738
bet 31: balance is 643.95666914 so we stake 13.83717685
bet 32: balance is 630.11949229 so we stake 13.97837253
bet 33: balance is 616.14111976 so we stake 14.12100898
bet 34: balance is 602.02011078 so we stake 14.26510091
bet 35: balance is 587.75500987 so we stake 14.41066316
bet 36: balance is 573.34434671 so we stake 14.55771075
bet 37: balance is 558.78663596 so we stake 14.70625882
bet 38: balance is 544.08037714 so we stake 14.85632268
bet 39: balance is 529.22405446 so we stake 15.00791781
bet 40: balance is 514.21613665 so we stake 15.16105983
bet 41: balance is 499.05507682 so we stake 15.31576452
bet 42: balance is 483.73931230 so we stake 15.47204783
bet 43: balance is 468.26726446 so we stake 15.62992587
bet 44: balance is 452.63733859 so we stake 15.78941491
bet 45: balance is 436.84792368 so we stake 15.95053139
bet 46: balance is 420.89739229 so we stake 16.11329192
bet 47: balance is 404.78410037 so we stake 16.27771326
bet 48: balance is 388.50638711 so we stake 16.44381238
bet 49: balance is 372.06257473 so we stake 16.61160638
bet 50: balance is 355.45096835 so we stake 16.78111257
bet 51: balance is 338.66985579 so we stake 16.95234841
bet 52: balance is 321.71750738 so we stake 17.12533156
bet 53: balance is 304.59217582 so we stake 17.30007984
bet 54: balance is 287.29209598 so we stake 17.47661127
bet 55: balance is 269.81548471 so we stake 17.65494403
bet 56: balance is 252.16054068 so we stake 17.83509652
bet 57: balance is 234.32544416 so we stake 18.01708730
bet 58: balance is 216.30835685 so we stake 18.20093513
bet 59: balance is 198.10742172 so we stake 18.38665896
bet 60: balance is 179.72076276 so we stake 18.57427793
bet 61: balance is 161.14648483 so we stake 18.76381138
bet 62: balance is 142.38267345 so we stake 18.95527884
bet 63: balance is 123.42739460 so we stake 19.14870006
bet 64: balance is 104.27869455 so we stake 19.34409495
bet 65: balance is 84.93459959 so we stake 19.54148368
bet 66: balance is 65.39311592 so we stake 19.74088657
bet 67: balance is 45.65222934 so we stake 19.94232419
bet 68: balance is 25.70990515 so we stake 20.14581729
end: balance is 5.56408786 so we need to stake 20.35138686 but can't afford it
I also wrote a simulation to sanity check the math:
#!/usr/bin/env python
import random
start = 1000.0
target = 2000.0
net_profit = 0
runs = 0
while True:
balance = start
# loop until we win or bust
while True:
stake = (target - balance) / 98.0
# we can't afford to keep going
if stake > balance:
break
# did we win?
if random.random() < 0.01:
balance += stake * 98
break
else:
balance -= stake
net_profit += balance - start
runs += 1
if runs % 10000 == 0:
print "net profit per run after %5d runs is %7.4f" % (runs, net_profit/runs)
I left it running for a while for the numbers to settle down:
net profit per run after 10000 runs is -26.1373
net profit per run after 20000 runs is -18.9573
net profit per run after 30000 runs is -12.1097
...
net profit per run after 9540000 runs is -6.4101
net profit per run after 9550000 runs is -6.4095
net profit per run after 9560000 runs is -6.3974
...
net profit per run after 14950000 runs is -6.9483
net profit per run after 14960000 runs is -6.9492
net profit per run after 14970000 runs is -6.9458
net profit per run after 14980000 runs is -6.9538
net profit per run after 14990000 runs is -6.9554
...
net profit per run after 16870000 runs is -7.0234
net profit per run after 16880000 runs is -7.0251
net profit per run after 16890000 runs is -7.0170
net profit per run after 16900000 runs is -7.0237
...
net profit per run after 419990000 runs is -7.0406 [edit1]
net profit per run after 420000000 runs is -7.0405
net profit per run after 420010000 runs is -7.0403
...
net profit per run after 562490000 runs is -6.9838 [edit2]
net profit per run after 562500000 runs is -6.9839
net profit per run after 562510000 runs is -6.9839
...
net profit per run after 595230000 runs is -6.9915
net profit per run after 595240000 runs is -6.9917
net profit per run after 595250000 runs is -6.9916
...
net profit per run after 1464310000 runs is -6.9539
net profit per run after 1464320000 runs is -6.9538
net profit per run after 1464330000 runs is -6.9538
...
net profit per run after 2615260000 runs is -6.9559
net profit per run after 2615270000 runs is -6.9559
net profit per run after 2615280000 runs is -6.9559
...
net profit per run after 3048560000 runs is -6.9694
net profit per run after 3048570000 runs is -6.9695
net profit per run after 3048580000 runs is -6.9695
That's pretty close to the -6.96 the math predicted.
Edit1: I left it running, but it doesn't appear to be converging on 6.96. So:
a) the math is wrong or
b) the simulation is wrong or
c) I didn't wait long enough yet
Edit2: Probably it's (c).