Help on random led coloring?

How do you make the code in past 19 so it recognizes values?