Hello, I’ve been trying to make a rarity system but I have an issue. All the rarity systems I’ve found so far are all the complete opposite thing I’ve been looking for.
I need help getting through the concept in which the higher the number rarity is the rarer it is, some examples are:
the items rarity is set at 100, so rarity would be 1/100
the items rarity is set at 2, so rarity would be 1/2
the items rarity is set at 25000, so rarity would be 1/25000
I am trying to make this without using decimals and percentages rather huge numbers such as these.
2 Likes
You could generate a random number between 1 and the rarity and check if it is 1. I don’t see how this is a problem or what you are trying to accomplish here but I hope this helps.
major issue: its looking through multiple things and trying to pull one object out of the group, thus this cannot work
additionally this is technically weighted and thus not truely random and would make the true rarity of these skewed
You just pointed out the flaw with the system you want to pull off. There is a reason people use set decimals and fractions that add up to 1 so you have complete control.