Hey, so I’m working on a pet system. And for this system, the following pet chances are used:
- 30% of getting Pet1
- 30% of getting Pet2
- 30% of getting Pet3
- 10% of getting Pet4
Usually what I would do for this, is iterate over each pet in the chance table, starting with the lowest chance and ending with the highest chance, and for each one, generate a new random number between 1-100.
However, this wouldn’t work in this scenario, as there’s 3 pets all with the same chance…
I find this a bit confusing. Any ideas? Thanks