bits#

Generates bits of underlying engine (BRNG) integer sequence.

Description#

The bits class object is used to generate integer random values. Each integer can be treated as a vector of several bits. In a truly random generator, these bits are random, while in pseudorandom generators this randomness can be violated. See VS Notes for details.

API#

Syntax#

namespace oneapi::mkl::rng::device {
  template<typename UIntType = std::uint32_t>
  class bits {
    using result_type = UIntType;
  };
}

Include Files#

  • oneapi/mkl/rng/device.hpp

Template Parameters#

typename UIntType = std::uint32_t

Type of the produced values. The specific values are as follows:

  • std::uint32_t for philox4x32x10, mrg32k3a and mcg31m1 engines.

  • std::uint64_t for mcg59 engine.