need help with array selection

Create an interim array of colors (probably in the Game Instance), and when one color is selected, remove it from the interim array. When you need it, you can populate the interim with the values from the original array to reset it:

When a player leaves and their color is vacant, you can add it back to the interim array.

Alright so i have an array full of colors that (12 to be exact) this array will be used as setting the default color when players connect (i want them all to spawn with different colors) problem i am running into is sometimes the players will spawn as the same color.

How would i tell the game to not grab an index for the color if another player already grabbed that index?

right now i have the array variable full of colors in the game mode and i am casting to it from my master character blueprint.

this worked nicely thank you!