Generates bits of underlying engine (BRNG) integer reccurence.


template<typename UIntType = std::uint32_t>
class bits {
using result_type = UIntType

Devices supported: Host, CPU, and GPU.

Include Files

  • oneapi/mkl/rng/device.hpp


The oneapi::mkl::rng::device::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.

Template Parameters

typename UIntType =  std::uint32_t

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