...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::lognormal_distribution
// In header: <boost/random/lognormal_distribution.hpp> template<typename RealType = double> class lognormal_distribution { public: // types typedef normal_distribution< RealType >::input_type input_type; typedef RealType result_type; // construct/copy/destruct lognormal_distribution(result_type = result_type(1), result_type = result_type(1)); // public member functions RealType mean() const; RealType sigma() const; void reset(); template<typename Engine> result_type operator()(Engine &); };
Instantiations of class template lognormal_distribution model a random distribution . Such a distribution produces random numbers with for x > 0, where and .