To add to that post, keep in mind that I had to use a sequence of colors in a certain order, so I couldn\'t just use $rand for the numbers needed.