Quote Originally Posted by VladimirF View Post
Read about srand.
If you seed the random number generator with the same value, you get the same sequence.
And for the duration of your program, time(0) likely doesn't change.
That's not the issue, it's when the program terminates, then I relaunch it again... I get maybe 3-4 repeated sequences if I place srand() inside the functions.