I’m working on a thing where a store selects random stock. I can do that no problem. Each item that can be sold has a rarity, there are five different rarities.
I have no idea how to go about this. If I didn’t have to deal with rarities, then I would just pick a number from 1 and however many items there are. But I can’t do that. I know I haven’t supplied any code, but I have no idea where to begin.
I tried googling “How to code rarity systems” or “How to code Loot Boxes” but I couldn’t find anything.