...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::exponential_distribution
// In header: <boost/random/exponential_distribution.hpp> template<typename RealType = double> class exponential_distribution { public: // types typedef RealType input_type; typedef RealType result_type; // construct/copy/destruct exponential_distribution(result_type = result_type(1)); // public member functions result_type lambda() const; void reset(); template<typename Engine> result_type operator()(Engine &); };