Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class xoshiro256d

boost::random::xoshiro256d

Synopsis

// 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;
};

Description

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.

xoshiro256d public member functions

  1. std::uint64_t next_int() noexcept;
  2. result_type next() noexcept;

xoshiro256d public static functions

  1. static constexpr min() noexcept;
  2. static constexpr max() noexcept;

PrevUpHomeNext