
Originally Posted by
jstrike
By the way. I noticed one little thing wrong with your sim, Enzo... shouldn't:
if (Math.random() < odd) bal+=pay*bet
read:
if (Math.random() < odd) {bal+=pay*bet} else {floatbal+=bet;}
? We're bootstrapping this. I never said the float was going to stay at $5k. It's just starting there.
nope it shouldn't read that. every run the sim stores how much it goes over the initial float in this line :
Code:
ret[ Math.floor((bal - floatbal - startbalance) / startbalance)] = 1;
so if ret is [1,1,1,0,0,...]
if means this run went over 5100, 5200 and 5300.
the final odd is then calculated as the odd to go over 5100 + the odd to go over 5200 + the odd to go over 5300 etc .. this is also clearly printed in the listing if you run the simulation.
So the simulation assumes a float of 5100 for the first player, 5200 for the second player etc .. (i.e. if it doesn't bust you, you use the full deposit to increase your float).
Enzo.
Bookmarks