📅  最后修改于: 2022-03-11 14:44:51.631000             🧑  作者: Mango
#include
#include
#include
int main() {
std::mt19937 gen (123);
std::uniform_real_distribution dis(0.0, 1.0);
double x = dis(gen);
std::cout << x << std::endl;
}