Get the current state of the current random number generator
s = distfun_seedget ( )
a m-by-1 matrix of doubles, integer value, the current state of the current random number generator
s is a column vector (of integers) of
dimension m=625 for mt,
dimension m=4 for kiss,
dimension m=2 for clcg2,
dimension m=40 for fsultra,
dimension m=4 for stream,
dimension m=1 for urand.
For "clcg4", s is the current state of the current virtual generator.
For "mt", the first entry, s(1), is an index in [1,624].
s = distfun_seedget ( ); size(s) // Set the CLCG2 generator distfun_genset ( "clcg2" ); s = distfun_seedget ( ) // Return to the default generator distfun_genset ( "mt" ); | ![]() | ![]() |