mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 04:35:46 +01:00
Merge pull request #4137 from quacksouls/cct-prob
CCT: inconsistent probability for generation between online and offline
This commit is contained in:
commit
ddda0f92c1
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user