reset
R2026bReset random number stream
Syntax
Description
reset( resets the random number stream
s)s to the initial internal state associated with the seed of the stream.
The reset function restores the State property of
s without changing other properties, such as Seed,
NormalTransform, Antithetic, or
FullPrecision.
reset( resets the
random number stream s,seed)s to the initial internal state associated with the
specified seed value and updates the Seed property of
s. The value of seed must be an integer between 0
and 232 − 1. Resetting the seed of a stream can invalidate
independence with other streams.
Note
Reset a stream only when you want to reproduce results from the stream.
Examples
Input Arguments
Version History
Introduced in R2008b