Randomize item generation using roll numerators for scalable probabilities
Classifier Option | Roll Numerator | Probability |
---|---|---|
Common | 70 | 70 / 120 = 58.33% |
Uncommon | 30 | 30 / 120 = 25.00% |
Rare | 15 | 15 / 120 = 12.50% |
Legendary | 5 | 5 / 120 = 4.17% |
Rarity | Item | Roll Numerator | Probability |
---|---|---|---|
Common | Sword | 50 | 50 / 100 = 50.00% |
Shield | 50 | 50 / 100 = 50.00% | |
Uncommon | Potion | 30 | 30 / 30 = 100.00% |
Classifier Option | Roll Numerator | Probability |
---|---|---|
Common | 70 | 70 / 170 = 41.18% |
Uncommon | 50 | 50 / 170 = 29.41% |
Rare | 30 | 30 / 170 = 17.65% |
Legendary | 20 | 20 / 170 = 11.76% |
Rarity | Item | Roll Numerator | Probability |
---|---|---|---|
Common | Gold Coins | 50 | 50 / 100 = 50.00% |
Shield | 50 | 50 / 100 = 50.00% | |
Legendary | Excalibur | 100 | 100 / 100 = 100.00% |