How to use simul_seed

Simul_seed is supposed to specify the seed for the random generator so as to obtain the same random sample at each run of the program (in a stochastic simulation). However, it is not clear to me how to use it and how to use either the EXPRESSION, the INTEGER or the DOUBLE.

Could you provide some examples or more guidance on this feature?. For instance, could you clarify if the simul_seed specifies the number of draws of the shocks to be saved for future simulations? Could you also indicate whether simul_seed must be specified equal to the number of periods of the simulation?

Any clarification on the role of thsi feature would be greatly appreciated.

Look at Matlab’s help on randn in order to understand the notion of ‘state’ of the random generator.
Option simul_seed sets the state of the random generator. You should provide an integer (or an expression in parentheses if you want to change the seed in a loop)

If you use option simul_seed with a fixed integer, then you will always get the same sequence of random numbers when you are running this program.

simul_seed has nothing to do with the number of iterations or the number of periods

Best

Michel