Introduction to Random Number Generation in Modern C++
December 13, 2020
Every implementation of the C++ Standard Library like one included to Embarcadero RAD Studio C++ compilers provides two ways for (pseudo-)random numbers generation: old-fashioned facilities from <cstdlib> and modern facilities provided by <random>.
Facilities from <cstdlib>
There are two very simple functions provided by the C random library: std::srand() and std::rand().