onemkl::rng::bits

Generates bits of underlying engine (BRNG) integer reccurents.

Syntax

template<typename T = std::uint32_t, method Method = standard>
  class bits {}

Include Files

  • mkl_sycl.hpp

Description

The onemkl::rng::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. For example, a drawback of linear congruential generators is that lower bits are less random than higher bits (for example, see [Knuth81]). For this reason, exercise care when using this function. Typically, in a 32-bit LCG only 24 higher bits of an integer value can be considered random. See VS Notes for details.

Input Parameters

Name

Type

Description

T

std::uint32_t

Integer type