#include <iostream> #include <fstream> #include <cstdlib> #include <random> int main ( int argc , char ** argv ) { std::random_device rd; std::mt19937_64 gen(rd()); std::uniform_real_distribution<> dis(0, 1); std::cout << dis(gen) << std::endl; return 0; }
"g++ code.cpp -o code.exe -std=c++0x"
erreur: ‘mt19937_64’ is not a member of ‘std’
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)