Sorry to bring up looping again, but I've got a random number generator in my program. with the program looping "x" number of times, the random number generator spits out the same number. How can I fix this?
I've got it set as "srand(time(NULL));"
Does this have something to do with it?
You should only call srand()once at the start of your program.
By the way, it is a bad idea to use rand() and srand(), as they are becoming deprecated in favor of the random number generators in the C++11 <random> header.