I’m making a platformer which allows the player to select a level and then gain a new ability after beating the boss at the end of the level.
After beating a boss a different boss will be randomly selected to be unavailable. There are 8 bosses in total so this will happen 4 times after the player defeats the enemy. After which they will then face a character that has the four abilities they do not have.
What is the best way to program this to make sure it can be done randomly?