#include // rand() and srand() #include // time using namespace std; int main() { // srand() initialises the random number generator. // time(0) returns the number of seconds since Jan 1 1970 srand (time(0)); // rand() returns a non-negative integer no less than RAND_MAX int a = rand(); return 0; }