In a single-threaded simulation it is common to pass the random number generator, of type AbstractRNG
as the first argument in the method that actually performs the simulation and have another method without this argument that calls the first method with Random.GLOBAL_RNG
in that position.
I see from documentation for Random.seed!
in julia-1.3.0 that there is a shared thread-local generator but I haven’t been able to find much more documentation on random number generators and threads. Is there some place I can check for such an explanation. Obviously I can check the code itself but I don’t want to miss an easier way of discovering how to do things.