Please use the C++11 random number generation utilties. rand() is formally discouraged in C++14