Start by writing a fixed value to each of the LED pin such as 128 for each.. Does the LED light up and if so, does changing the values written to 0, 0, and 255 change the colour of the LED ?
Apart from any other problems with your sketch, random(2, 1000) will return a value between 0 and 999 but the maximum value used by analogWrite() is 255
For testing I also suggest that you increase the delay() to 1000 to give more time to see the RGB colour
With the code i didn't mean to have 1000 it was originally 255, I was just testing. My current code does say 255
I have made it so that i can do a rgb color switch.
I also have made it with another external rgb light, it will choise random