I guess using random numbers would make it chaotic, you could create few loops and modify variables for red, green and blue.
Type "color picker" in google and notice how these 3 values change when you move the slider between red and blue, it's basically like this:
1. 255, 0, 0
2. 255, 255, 0
3...