I'm making a game using LibGDX and the idea of the game is there's four buttons with 4 different colors on them ( red, green, yellow, and blue ). Then there's a circle that goes across the bottom of the screen that is one of the 4 colors and you select what color it is before it hits the end of the screen and if you successfully do so it resets as a different color and you repeat this until you lose ( It also goes faster the more points you get ). Where I'm stuck is, I want to add a feature for every time you get a point it will randomize the 4 buttons colors. Here's a diagram.
My problem is I don't know how I would ranomize these colors without two or more of them turning out as the same color. The way I randomized the bottom color is just using int RandomColor = MathUtils.random(1, 4);
then based on what number that becomes is what color it becomes, for example, 1 = red, 2 = blue, ect.
I think shuffling might be helpful. http://docs.oracle.com/javase/7/docs/api/java/util/Collections.html#shuffle(java.util.List)