| Home | Libraries | People | FAQ | More

## Class xoshiro128f

boost::random::xoshiro128f

## Synopsis

    // In header: <boost/random/xoshiro.hpp>

    class xoshiro128f {
    public:

      // public member functions
      std::uint32_t next_int() noexcept;
      result_type next() noexcept;

      // public static functions
      static constexpr min() noexcept;
      static constexpr max() noexcept;
    };

## Description

This is xoshiro128+ 1.0, our best and fastest 32-bit generator for 32-bit floating-point numbers. We suggest to use its upper bits for floating-point generation, as it is slightly faster than xoshiro128**. It passes all tests we are aware of except for linearity tests, as the lowest four bits have low linear complexity, so if low linear complexity is not considered an issue (as it is usually the case) it can be used to generate 32-bit outputs, too.

We suggest to use a sign test to extract a random Boolean value, and right shifts to extract subsets of bits.

The state must be seeded so that it is not everywhere zero.

### `xoshiro128f` public member functions

1.     std::uint32_t next_int() noexcept;

2.     result_type next() noexcept;

### `xoshiro128f` public static functions

1.     static constexpr min() noexcept;

2.     static constexpr max() noexcept;