Namespaces
Variants
Views
Actions

Talk:cpp/numeric/random

From cppreference.com

[edit] Predefined generators

I think the standard typedef'd generators (minstd's, mt19937's, ranluxes, knuth_b) deserve their own pages if only to explain what standard does 'std' refer to, what does 'ranlux' stand for, where does the number 19937 come from, and how is knuth_b related to Donald Knuth. I think the wiki would be most useful if it could even provide a few pointers on which generator to use for which purpose. --Cubbi 19:54, 20 October 2011 (PDT)

[edit] Obsolete generators

Why have they included obsolete generators in the new C++11 standard? The Mersenne Twister is the best of these generators, but newer improved versions have been developed. The other generators should never be used for serious applications when better alternatives are available. I think the page should contain a warning against using the obsolete generators for demanding applications or a recommendation about which generator is best Afog (talk) 00:19, 25 January 2015 (PST)

[edit] <cmath>

Commenting out "#include <cmath>" yields no compiler error. May it be dropped from the example? Newatthis (talk) 06:59, 25 October 2017 (PDT)

no, it is required for std::round. --Cubbi (talk) 07:01, 25 October 2017 (PDT)