--Originally published at My TC1017 programming class
Here is a random number generator. There are some annotations on the program itself, and as always, I will put the link to the Google Drive document.
I personally had some trouble understanding the srand seed. There is a small description on the cpp file that explains a little bit on how it works.
https://drive.google.com/open?id=0B8vzJAbVok1MLUttZERaTFhtXzQ
Random number generator: http://www.cplusplus.com/reference/cstdlib/rand/
Seed for random number:
http://www.cplusplus.com/reference/cstdlib/srand/