The Mathematics of Treasure
Every time a monster dies in Diablo, a chest opens in Genshin Impact, or a card pack is cracked in Hearthstone, a weighted random number generator consults a loot table. These tables are simple in concept — each item has a weight, and the probability equals its weight divided by the total — but their psychological effects are profound. The variable ratio reinforcement schedule they create is the same mechanism that makes slot machines addictive.
Weighted Probability Tables
A typical loot table assigns weights like 60 (common), 25 (uncommon), 10 (rare), 4 (epic), and 1 (legendary). With total weight 100, a legendary has a 1% drop chance per kill. This means on average you need 100 kills for one legendary — but 'on average' hides enormous variance. Some players get lucky on their first kill; others go 300+ kills without one. This simulator runs thousands of drops so you can see the actual distribution.
The Pity Timer Solution
Pure random loot creates a frustration problem: geometric probability has a long tail. With a 1% drop rate, about 5% of players will go 300+ drops without a legendary — enough to make them quit. Modern games solve this with pity timers: guaranteed drops after N attempts. Genshin Impact's system increases the base 0.6% rate dramatically after 73 pulls, reaching near-certainty at 90. This caps the worst-case experience while preserving the excitement of random drops.
Designing Reward Schedules
Great loot design balances three forces: anticipation (the excitement of possible rare drops), satisfaction (the dopamine hit when one actually appears), and fairness (ensuring no player is punished by extreme bad luck). The weights you choose determine the average cadence of rewards; the pity timer determines the maximum drought. Adjust the sliders to see how these parameters interact — and why game designers obsess over these numbers.