Thanks! I ended up with this:
int random_generator(int min,int max)
randomValue = min + random()%(max - min);
if (randomValue == 0)
else if (randomValue == 1)
though since I’m calling it in my draw function it’s being called repeatedly, thus flashing all three colors o.o
so I’m working on a for loop to draw one row of fifteen circles, so I can then use a pointer in my main function which only gets called once. I’m getting errors though so I’ll make a new thread I suppose since this topic’s been closed. If this is against policy do let me know.
And I’m using the opengl library, to draw the shapes so I thought this was were my question belonged. If you still don’t see the connection in my new thread should I try a C programming forum? Since this is a combination of OpenGL and C?