Random Numbers in C++

To generate random numbers in C++ using the rand() function do the following:

The C++ Library has other classes for random number generation. You are welcome to use any of them.