C++ 真随机数生成之均匀分布

    random_device rd;
    std::mt19937 gen(rd());
    std::uniform_int_distribution<> dis(1, 6);
    for(int n=0; n<10; ++n)
        std::cout << dis(gen) << ' ';
原文地址:https://www.cnblogs.com/theodoric008/p/9168479.html