|
Execseed |
Top Previous Next |
|
Expressions can be used to reset and save the seed for the random number generator. Setting a scalar quantity to the function
cc=execseed;
saves the random number seed that will be used to generate the next random number. In the process, it also re-initializes the random number generator using this seed value. Setting the function to a scalar quantity (that must be integer)
execseed=round(cc,0);
resets the random number seed. This item should be used very infrequently on the right hand side of a replacement statement as this forces a re-initialization of the seed for the random number generator. |