How to generate a random number with percentages

I am trying to make a random prize box with different items that you have different chances of getting. How do I do this? I know a few unconventional ways, such as making a table with 100 items and duplicating the items for how common they are (I don’t know if that makes sense), but is there a better way?

you could try to use RNG to pick a number within a certain range for example for a 50% chance, use RNG and see whether a number from 1 to 50 was picked

1 Like

Speaking from a mathematical POV, surely if you used multipliers you could do what you are asking for? But I’m not sure and I haven’t tested it out.

1 Like

This gets asked quite often, try searching this forum or even the wider internet. Try “weighted random item picking” or something.

3 Likes