With these weights, how often does "rare" drop?
const drops = { common: 70, uncommon: 25, rare: 5 };
- 1 in 70 rolls
- 25% of the time
- 5% of the time
- 1 in 3 rolls
The weights total 100, so each one is its share of the total: rare gets 5 / 100 = 5% of rolls.
Play Game Dev ▸