Random Number Generator in C++ by Alan Kong