Include the <time.h> library and then call time(). I've seen this function used to provide the seed for random number generators by using srand(time()).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.