Merge pull request #4137 from quacksouls/cct-prob

CCT: inconsistent probability for generation between online and offline
This commit is contained in:
hydroflame
2022-09-23 12:27:14 -03:00
committed by GitHub

View File

@ -262,7 +262,7 @@ const Engine: {
if (numCyclesOffline < 3000 * 100) { if (numCyclesOffline < 3000 * 100) {
// if we have less than 100 rolls, just roll them exactly. // if we have less than 100 rolls, just roll them exactly.
for (let i = 0; i < numCyclesOffline / 3000; i++) { for (let i = 0; i < numCyclesOffline / 3000; i++) {
if (Math.random() < 0.25) numContracts++; if (Math.random() <= 0.25) numContracts++;
} }
} else { } else {
// just average it. // just average it.