I\'m doing a book exercise that says to write a program that generates psuedorandom numbers. I started off simple with.
#include \"std_lib_facilities.h\" in
It is common to seed the random number generator with the current time. Try:
srand(time(NULL));