Developer Reference for Intel® oneAPI Math Kernel Library for C
Random Streams
random stream Random stream (or stream stream ) is an abstract source of pseudo- and quasi-random sequences of uniform distribution. You can operate with stream state descriptors only. A stream state descriptor, which holds state descriptive information for a particular BRNG, is a necessary parameter in each routine of a distribution generator. Only the distribution generator routines operate with random streams directly. See [VSNotes] for details.
You can create unlimited number of random streams by VS Service Routines like NewStream (Creates and initializes a random stream.) and utilize them in any distribution generator to get the sequence of numbers of given probability distribution. When they are no longer needed, the streams should be deleted calling service routine DeleteStream (Deletes a random stream.) .
VS provides service functions SaveStreamF (Writes random stream descriptive data, including stream state, to binary file.) and LoadStreamF (Creates new stream and reads stream descriptive data, including stream state, from binary file.) to save random stream descriptive data to a binary file and to read this data from a binary file respectively. See [VSNotes] for detailed description.