Как подключить boost::random QRNG к стандартному дистрибутиву C++?C++

Программы на C++. Форум разработчиков
Гость
Как подключить boost::random QRNG к стандартному дистрибутиву C++?

Сообщение Гость »


Я пытаюсь использовать

Код: Выделить всё

boost::random::sobol
QRNG to sample one of the standard C++ distributions listed here https://en.cppreference.com/w/cpp/numeric/random, but the results are not correct.
Suppose I wish to sample a binomial distribution. According to https://en.cppreference.com/w/cpp/numer ... stribution, I can do this:

Код: Выделить всё

#include 
#include 
#include 

int main()
{
std::random_device rd;
std::mt19937 gen(rd());  // 

Источник: [url]https://stackoverflow.com/questions/78128572/how-do-i-plug-a-boostrandom-qrng-into-a-c-standard-distribution[/url]

Вернуться в «C++»