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