You can use the random generator to generate a new seed.
For example:
srand((unsigned int)rand());
And use srand(time(NULL)) only once before the loop. But as suggested in another answer, you might as well drop the whole srand inside the loop as well.