Name: Anonymous 2009-10-27 11:51
How do I get a random number between nMin and nMax?
I tried using:
srand(time(0));
int x = rand() % nMax + nMin;
...
I will use this to randomize the starting point of particles in a particle system.
I tried using:
srand(time(0));
int x = rand() % nMax + nMin;
...
I will use this to randomize the starting point of particles in a particle system.