#include <iostream> #include <string> #include <random> int main() { std::mt19937 gen (123); std::uniform_real_distribution<double> dis(0.0, 1.0); double x = dis(gen); std::cout << x << std::endl; }