diff --git a/README.md b/README.md index 0e7d0cd..884fa54 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,8 @@ int main() { float f = rng.rand(); // range [0,1) // use std distribution functions with RNG - double x = std::lognormal_distribution dist(0.0, 1.0); + std::lognormal_distribution dist(0.0, 1.0); + double x = dist(rng); ... } ```