random generator logic

no less than 4 colors represented now.