I have problem where I want to create a std::uniform_int_distribution in a struct and then give its range later. Below is what I want.
std::uniform_int_distribution
#include
You should do
group.dis = std::uniform_int_distribution<>(0,19);
instead of
group.dis(0,19);
Also, your code seems to be taken without reference directly from here, so a link as kind of a tributal citation would have been in order.