![]() |
Home | Libraries | People | FAQ | More |
boost::random::xoshiro256d
// In header: <boost/random/xoshiro.hpp> class xoshiro256d { public: // public member functions std::uint64_t next_int() noexcept; result_type next() noexcept; // public static functions static constexpr min() noexcept; static constexpr max() noexcept; };
This is xoshiro256+ 1.0, our best and fastest generator for floating-point numbers. We suggest to use its upper bits for floating-point generation, as it is slightly faster than xoshiro256++/xoshiro256**. It passes all tests we are aware of except for the lowest three bits, which might fail linearity tests (and just those), so if low linear complexity is not considered an issue (as it is usually the case) it can be used to generate 64-bit outputs, too.