Código (cpp) [Seleccionar]
srand(time(NULL));
srand
time
CitarFor every different seed value used in a call to srand, the pseudo-random number generator can be expected to generate a different succession of results in the subsequent calls to rand.
Two different initializations with the same seed, instructs the pseudo-random generator to generate the same succession of results for the subsequent calls to rand in both cases.
Igualmente si el proyecto es lo suficientemente serio tal vez debas considerar utilizar PRNG mas robustos.
Saludos