Device Distributions

oneMKL RNG routines are used to generate random numbers with different types of distribution. Each function group is introduced below by the type of underlying distribution and contains a short description of its functionality, as well as specifications of the call sequence and the explanation of input and output parameters. The Device Continuous Distribution Generators table and Device Discrete Distribution Generators table list the random number generator routines with data types and output distributions, and sets correspondence between data types of the generator routines and the basic random number generators.

Type of Distribution

Data Types

BRNG Data Type

Description

oneapi::mkl::rng::device::uniform

s, d

s, d

Uniform continuous distribution on the interval [a,b)

oneapi::mkl::rng::device::uniform

s, d

s, d

Normal (Gaussian) distribution

oneapi::mkl::rng::device::lognormal

s, d

s, d

Lognormal distribution

Type of Distribution

Data Types

BRNG Data Type

Description

oneapi::mkl::rng::device::uniform (discrete)

s

Uniform discrete distribution on the interval [a,b)

oneapi::mkl::rng::device::bits

i

i

Bits of underlying BRNG integer recurrence