Help on random led coloring?

yours worked, only every color it showed was white

It wasn't mine, it was yours, with the code in proper functions.
As I said, untested - I don't have your hardware, I was just working on the code as you posted it.