improve random color link function by using only one set of colors