Random number generator code in C++
exec: Random number generator