We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The alternate RNG proposed in the book (using C++11's std::mt19937 ) is wrong. It's listed as
std::mt19937
inline double random_double(double min, double max) { static std::uniform_real_distribution<double> distribution(0.0, 1.0); static std::mt19937 generator; return generator(distribution); }
but the last line as the items reversed. It should be
inline double random_double(double min, double max) { static std::uniform_real_distribution<double> distribution(0.0, 1.0); static std::mt19937 generator; return distribution(generator); }
The text was updated successfully, but these errors were encountered:
Fix alternate random_double() implementation
4516a32
Resolves #621
hollasch
No branches or pull requests
The alternate RNG proposed in the book (using C++11's
std::mt19937
) is wrong. It's listed asbut the last line as the items reversed. It should be
The text was updated successfully, but these errors were encountered: