boost::random::generate_canonical
// In header: <boost/random/generate_canonical.hpp> template<typename RealType, bits, typename URNG> RealType (URNG & g);
Returns a value uniformly distributed in the range [0, 1) with at least bits random bits.
bits