Version 1.1: Reverted to the old cstdlib for rand() as the <random> library is not standard in < C++11