Engines
Algorithm Input
Input ID

Input
 

tableToFill 
Pointer to the numeric table of size
n
x
p
.
This input can be an object of any class derived from
NumericTable
except
CSRNumericTable
,
PackedSymmetricMatrix
,
PackedTriangularMatrix
, and
MergedNumericTable
when it holds one of the above table types.

Algorithm Output
Result ID

Result
 

randomNumbers 
Pointer to the
n
x
p
numeric table with generated random floatingpoint values of single or double precision. In Intel DAAL, engines are inplace, which means that the algorithm does not allocate memory for the distribution result, but returns pointer to the filled input.

Parallel Random Number Generation
 FamilyEngines follow the same algorithmic scheme with different algorithmic parameters. The set of the parameters guarantee independence of random number sequences produced by the engines. The example below demonstrates the idea for case when 2 engines from same family are used to generate 2 random sequences.
 SkipAheadThis method skipsnskipelements of the original random sequence. This method allows to producenThreadsnonoverlapping subsequences. The example below demonstrates the idea for case when 2 subsequences are used from the random sequence.
 LeapFrogThis method generates random numbers with a stride ofnThreads.threadIdxis an index of the current thread. The example below demonstrates the idea for case when 2 subsequences are used from the random sequence.