Skip to Main Content Skip to Search
Product Documentation

RandStream.list - Random number generator algorithms

Class

RandStream

Syntax

RandStream.list

Description

RandStream.list lists all the generator algorithms that may be used when creating a random number stream with RandStream or RandStream.create. The available generator algorithms and their properties are given in the following table.

KeywordGeneratorMultiple Stream and Substream SupportApproximate Period In Full Precision
mt19937arMersenne twister (used by default stream at MATLAB startup)No
mcg16807Multiplicative congruential generatorNo
mlfg6331_64Multiplicative lagged Fibonacci generatorYes
mrg32k3aCombined multiple recursive generatorYes
shr3congShift-register generator summed with linear congruential generatorNo
swb2712Modified subtract with borrow generatorNo

For a full description of the Mersenne twister algorithm, see http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html.

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS