Developer Reference for Intel® oneAPI Math Kernel Library for C

ID 766684
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Random Number Generators

Intel® oneAPI Math Kernel Library VS provides a set of routines implementing commonly used pseudorandom, quasi-random, or non-deterministic random number generators with continuous and discrete distribution. To improve performance, all these routines were developed using the calls to the highly optimizedBasic Random Number Generators (BRNGs) and vector mathematical functions (VM, see "Vector Mathematical Functions").

VS provides interfaces both for Fortran and C languages. For users of the C and C++ languages the mkl_vsl.h header file is provided. All header files are found in the following directory:

${MKL}/include

All VS routines can be classified into three major categories:

  • Transformation routines for different types of statistical distributions, for example, uniform, normal (Gaussian), binomial, etc. These routines indirectly call basic random number generators, which are pseudorandom, quasi-random, or non-deterministic random number generators. Detailed description of the generators can be found in Distribution Generators.

  • Service routines to handle random number streams: create, initialize, delete, copy, save to a binary file, load from a binary file, get the index of a basic generator. The description of these routines can be found in Service Routines.

  • Registration routines for basic pseudorandom generators and routines that obtain properties of the registered generators (see Advanced Service Routines).

The last two categories are referred to as service routines.

Product and Performance Information

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.

Notice revision #20201201