Based on the Vampire Survivors upgrade system, when the player levels up, he would like 3 items to appear to choose from a larger number of items, and as the same item is chosen several times, it reaches the maximum level and stops appearing.
What is the ideal way to do this, and is there an example to follow?