Updated random color function