Developer Reference

  • 2020.2
  • 07/15/2020
  • Public Content
Contents

Service Routines

Stream handling comprises routines for creating, deleting, or copying the streams and getting the index of a basic generator. A random stream can also be saved to and then read from a binary file. Table
"Service Routines"
lists all available service routines
Service Routines
Routine
Short Description
Creates and initializes a random stream.
Creates and initializes a random stream for the generators with multiple initial conditions.
Creates and initializes an abstract random stream for integer arrays.
Creates and initializes an abstract random stream for double precision floating-point arrays.
Creates and initializes an abstract random stream for single precision floating-point arrays.
Deletes previously created stream.
Copies a stream to another stream.
Creates a copy of a random stream state.
Writes a stream to a binary file.
Reads a stream from a binary file.
Writes a random stream descriptive data, including state, to a memory buffer.
Creates a new stream and reads stream descriptive data, including state, from the memory buffer.
Computes size of memory necessary to hold the random stream.
Initializes the stream by the leapfrog method to generate a subsequence of the original sequence.
Initializes the stream by the skip-ahead method.
Initializes the stream by the advanced skip-ahead method.
Obtains the index of the basic generator responsible for the generation of a given random stream.
Obtains the number of currently registered basic generators.
Most of the generator-based work comprises three basic steps:
  1. Generating random numbers with given distribution, see Distribution Generators.