We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d6bf4b commit e341091Copy full SHA for e341091
sample/cppref-sample.cpp
@@ -63,7 +63,7 @@ int main()
63
64
std::map<int, int> hist;
65
for (int n = 0; n < 10000; ++n) {
66
- ++hist[int(std::round(normal_dist(rng)))];
+ ++hist[std::lround(normal_dist(rng))];
67
}
68
std::cout << "Normal distribution around " << mean << ":\n";
69
for (auto p : hist) {
0 commit comments