I am wanting to generate a random number from inside a member function of a class thats located in its header file.
My question is..where do I put the #include <time.h> and the needed variables to use it (by it I mean the variables the tutorial thats on this site about 'generating random numbers' uses)?
Do I put #include <time.h>, <cstdlib>, time_t seconds,time(&seconds) and srand((unsigned int) seconds) in the header file or do I put them in the main.cpp?