uniform_bits

Class is used for generation of uniformly distributed bits in 32/64-bit chunks.

Description

The class object is used in the oneapi::mkl::rng::generate() function to provide uniformly distributed bits in 32/64-bit chunks. It is designed to ensure each bit in the 32/64-bit chunk is uniformly distributed. Can be not supported by the specific engine.

class uniform_bits

Syntax

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

Template parameters

typename UIntType
Type of the produced values. Supported types:
  • std::uint32_t

  • std::uint64_t

Member types

uniform_bits::result_type = UIntType

Description

The type which defines type of generated random numbers.

Parent topic: Distributions