The best way is to use the srand() method in main, but initialize it with the time:
srand(time(0)). It will use current time to randomize the use of the rand() function throughout the rest of your program. Happy coding!!