PirateMonero

Blog / Game math

The math behind PirateMonero’s chest odds

A free PirateMonero chest has a base chance of one in ten million. Where does that number come from? The server draws one integer and compares it with a threshold. Your plan changes the threshold. The size of the prize doesn’t enter that comparison.

Why the server throws away some random numbers

A 32-bit unsigned value has 4,294,967,296 possible outcomes. If the server took the remainder after dividing each one by one billion, the first 294,967,296 positions would each have five ways of appearing. The others would have four. That bias would matter because the winning positions are at the bottom of the range.

PirateMonero draws again whenever the raw value is 4,000,000,000 or higher. The accepted range has exactly four billion values. Dividing by one billion and keeping the remainder now leaves exactly four source values for each position. With a Free threshold of 100, the winning draws are 0 through 99. That gives 100 / 1,000,000,000 = 0.00001% per opening.

How boosts change the threshold

At the published defaults, Daily raises the threshold to 150 for the life of the boost. Weekly starts at 200. With six eligible chests already counted during that boost, the next threshold is 200 + 6 × 50 = 500, or one in two million. At sixteen counted openings it reaches 1,000. Any openings after that leave the threshold at the cap.

Cap’n’s Favor adds 50 to the threshold for the player leading the seven-day opening count. At a threshold of 500, that changes it to 550. At 1,000, it does nothing because the cap still applies. A boost also has a server-side expiry. The countdown on your screen can lag, but the server checks the expiry when you open a chest.

Ten thousand chests still give you about a 0.1% chance

Suppose you could open 10,000 chests at the same Free odds, with no Favor. For independent draws, the chance of no wins is (1 − 1/10,000,000)10,000. Subtract that from one and you get about 0.09995% for at least one win.

Weekly odds can change between openings, so the final multiplier doesn’t apply to the whole run. If you know the sequence of thresholds, multiply the chances of losing at each threshold, then subtract that product from one. The cooldown doesn’t bank unused draws.

What a winning chest actually pays

The pot belongs to a five-minute UTC window. Winners in that window split it, and a window without a winner pays nothing. The server divides in atomic units: one XMR is one trillion units. Take a 30 XMR pot with seven winners. Each share starts at 4,285,714,285,714 units, and two units are left over. Those units go one apiece to the first two winners in ascending account ID order. The seven shares add up to the exact pot before any payout fees.

At the default Free odds, even a hypothetical full 30 XMR paid to a sole winner would give a gross expected value of just 0.000003 XMR per opening. Sharing the pot, a smaller pot or payout fees can lower that figure. Don’t confuse a large prize with a likely return.

How to check these claims

The technical math page has the draw formula, the boost curves and the Lean 4 reference. It marks the counting proof that still has a placeholder. The arithmetic here explains the rules; the reference doesn’t prove that any individual draw was fair. See the vault rules for eligibility and payout timing.