Selecting a Random Player

Quick question

I have a game with 10 player sides

I want to create a button that selects a random player

If there are only 6 players, how do I make the button only select a player side that’s being used?

Thanx

Never mind. I came up with a solution to my problem.