Hi there
I want to easy shuffle the below list, so the colours element are at a different index every time the scripts get loaded:
List spaceStationColours = new List ();
spaceStationColours.Add (new SpaceStationColours (“red”));
spaceStationColours.Add (new SpaceStationColours (“green”));
spaceStationColours.Add (new SpaceStationColours (“yellow”));
Maybe I should add an integer as well 1-3 and only the integer element would change between those 3 elements, but I dont know what is the normal way to do this.
The topic How can i shuffle a list - Questions & Answers - Unity Discussions This is the classic example of what not to do!! This will produce highly biased output. See here for more information. Whats wrong about that. I got confused because there is no real answer to this.
gracias!