I would like to suggest an enhancement to the documentation for the
random library.
The documentation for the number generators advises not to construct
generators frequently for various reasons. On some platforms there
could also be an issue with memory use where the generators are created
on the stack.
I have used the suggested mt19937 generator that is about 5000 bytes in
size on my system. If I create two of these on the stack then I get a
crash. I followed the "very quick start" example that creates the
generator on the stack and has a variate_generator like this:
boost::mt19937 rng;
boost::uniform_int<> six(1,6)
boost::variate_generator