I would like to be able to reset the lower and upper bounds of a std::uniform_int_distribution<T> object after it has been created, and it seems the param function in the class allows this functionality. See https://en.cppreference.com/w/cpp/numeric/random/uniform_int_distribution/param (2).
But it's not clear to me how to construct this param_type object that it takes in. Could someone provide an example?
It's not very clear from the documentation, but here it is:
Here's how you can find this information in the docs:
std::uniform_int_distributionRandomNumberDistribution
So basically
std::uniform_int_distribution<int>::param_typehas a constructor taking identical arguments asstd::uniform_int_distribution<int>.