Skip to content

[WIP] Random number generator update

Folkert Nobels requested to merge random_update into master

For some cases we seem to reach the limits of our current random number generator (RNG), which is unable to statistically sample numbers with a probability below 1e-6. For this I improved the RNG to instead of using the standard rand_r we will be using Treefry from Random123 which is a very good RNG and can statically reproduce numbers until a much lower probability.

I included the required Random123 files but I am not completely sure if we need all the compiling things?

I also added some documentation for the RNG, this is currently a main link on the documentation page, I am not sure if this is the best option but I also don't know a much better option, any suggestions?

Edited by Matthieu Schaller

Merge request reports