This doesn't look right. Should be red / 255 because you want a value between 0.0 and 1.0 and not a random between 0-255.