Implement knuth shuffle for random color