See for example this:

In this case, there are about 16 colors, which are "fixed". And the program chooses automatically any color out of this palette and tries to acoid using only one color.
I can think about that for the players or any other entity in the game. But much more important: GUI-elements, colors of buttons, coloring trains, so that you know, which route it drives... and a lot of those stuff more.