int red, green, blue; red = rand()%10; green = rand()%10; blue = rand()%10; glColor3f((float)red/10, (float)green/10, (float)blue/10);