JSFiddle - React, Tailwind, and code Playground
by madroller
HTML
<ul id="data3"></ul>
JavaScript
botBaseGame = 49.50;
botBaseMulti = 2;
house_edge = 1;
for(var botCurrLossRun = 0; botCurrLossRun<100;botCurrLossRun++){
theGame = Number(1 / ((botBaseMulti + botCurrLossRun) / 100) * ((100-house_edge)/100)).toFixed(4);
$('#data3').append('<li>'+theGame+'</li>');
}
if(botDidWin){
resetToBase();
} else {
botCurrGame = Number(1 / ((botBaseMulti + botCurrLossRun) / 100) * ((100-house_edge)/100)).toFixed(4);
}