Random generator
#include <random> // ... std::mt19937 rng; std::uniform_real_distribution<double> dist(0.0, 1.0); auto number = dist(rng);