Visible to Intel only — GUID: GUID-BB822E09-6379-4654-9BA3-44B351659621
Visible to Intel only — GUID: GUID-BB822E09-6379-4654-9BA3-44B351659621
Random Number Generators
Intel® oneAPI Math Kernel Library (oneMKL) provides Data Parallel C++ interfaces for the Vector Statistics Random Number Generators (RNG) routines implementing commonly used pseudorandom, quasi-random, and non-deterministic generators with continuous and discrete distributions.
oneMKL RNG includes manual offload functionality similar to other domains (Random Number Generators Routines) and also device functionality — a set of functions callable directly from DPC++ kernels (refer to Random Number Generators Device Routines for detailed descriptions).
Definitions
Pseudo-random number generator is defined by a structure(S, μ, f, U, g), where:
S is a finite set of states (the state space)
μ is a probability distribution on S for the initial state (or seed) s0
f:S→S is the transition function
U - a finite set of output symbols
g:S→U an output function
The generation of random numbers is as follows:
Generate the initial state (called the seed) s0 according to μ and compute u0=g(s0).
Iterate for and . Output values are the so-called random numbers produced by the PRNG.
In computational statistics, random variate generation is usually made in two steps:
Generating imitations of independent and identically distributed (i.i.d.) random variables having the uniform distribution over the interval (0, 1)
Applying transformations to these i.i.d. U(0, 1) random variates in order to generate (or imitate) random variates and random vectors from arbitrary distributions.
All RNG routines can be classified into several categories:
Engines (Basic random number generators) classes, which hold the state of the generator and is a source of i.i.d. random variables.
Transformation classes for different types of statistical distributions, for example, uniform, normal (Gaussian), binomial, etc. These classes contain all of the distribution’s parameters (including generation method).
Generate function. The current routine is used to obtain random numbers from a given engine with proper statistics defined by a given distribution.
Service routines to modify the engine state: skip ahead and leapfrog functions.