gpurng
Control random number generation for GPU calculations
Syntax
Description
gpurng('default')
returns the settings of the random
number generator to their default values. The random numbers produced are the
same as if you had restarted MATLAB®. The default setting is the Threefry
generator
with seed 0
.
returns the current state
of the random number generator as a structure with fields 'Type', 'Seed', and
'State'. Use this structure to restore the random number generator to the
captured settings at a later time with
S
= gpurnggpurng(
.S
)
gpurng(
restores the state of the
random number generator using settings previously captured with S
)S =
gpurng
.
returns
the current state of the random number generator as a structure before changing
the settings of the seed or generator type.S
= gpurng(___)