getDefaultStream (RandStream) - Default random number stream
Class
@RandStream
Syntax
stream = RandStream.getDefaultStream
Description
stream = RandStream.getDefaultStream returns
the default random number stream. The MATLAB functions rand, randi,
and randn use the default stream
to generate values.
rand, randi, and randn all rely on the default stream
of uniform pseudorandom numbers. randi uses
one uniform value from the default stream to generate each integer
value; randn uses one or more
uniform values from the default stream to generate each normal value.
Note that there are also rand, randi, and randn methods
for which you specify a specific random stream from which to draw
values.
See Also
@RandStream, setDefaultStream
(RandStream), rand, randi, randn
 | getdatasamplesize | | getdisp (hgsetget) |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit