#include <vector> #include <iostream> #include <random> #include <ctime> int main() { std::default_random_engine e(time(0)); std::uniform_real_distribution<double> u(0, 1); //std::uniform_int_distribution<double> u(0, 100); for (int a=0;a<10;a++) { double ss = u(e); std::cout << ss << std::endl; } getchar(); return 0; }