Repeating simulations


I am using Julia for reinfocement learning and to repeat my simulations I would like to know if I can use a seed? I tried


But it does not repeat the same simulations.

Theoretically the seeding should be enough, but it is hard to know without a minimal working example. Note that you have to re-run Random.seed!(1) every time you run the simulations

Perfect, the problem was that I did not know that I had to re-run it. Thanks!

1 Like