Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <boost/random.hpp>
- #include <iostream>
- #include <random>
- std::mt19937 rgenerator;
- int main(int argc, char const *argv[])
- {
- boost::lognormal_distribution<double> blndistribution(0.75, 12.4); // mean and std
- for (int i=0; i<20; i++)
- std::cout << "boost_lognormal_distribution: " << blndistribution(rgenerator) << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment