Open hugobuddel opened 1 year ago
I'll go next:
I recently noticed that numpy recommends using np.random.Generator
for new development. AFAIK, we're using the legacy random functions most everywhere. While I didn't consider it a priority at the time I found out about this, I think if (when) we're already touching the random stuff, it might be worth migrating to the new style, which numpy claim has performance benefits, as well as quality of the "randomness" and handling. Maybe some of the changes we want to implement anyway will become easier to manage with this.
The Random Number Generation (RNG) is a bit messy in ScopeSim. See for example #295 and #97.
The idea behind this issue is to collect what we need from the RNG.
I'll go first.