Set_dynare_seed outside .mod file?

Dear community,
I was reading the manual and, in 4. The model file — Dynare 6.1 documentation, you have information on setting the seed used for random number generation. If I understand correctly, set_dynare_seed is for the .mod file. Is there a way of using set_dynare_seed (or something else) outside, in a .m file, for a loop for example? Say, by changing something in options_ ?
Thanks in advance!

In Dynare 6, you can call the function


where at a minimum, you need to set the seed via:


Thank you! And I would suppose that seed = 0 is the default, right?

No, the default is

1 Like

Perfect! Thank you!