|
|
time() http://www.cplusplus.com/reference/ctime/time/time_t object, an arithmetic type that| generally represents the number of seconds since 00:00 hours, Jan 1, 1970 UTC |
srand() takes unsigned int, so time_t must implemently convert to unsigned int.Two different initializations with the same seed will generate the same succession of results in subsequent calls to rand(). |
rand() is not recommended anymore. C++ Standard Library