by Semaphor · 2y ago · 0 comments
In [1] it says that numbers have a 0.5034 probability of being odd due to rounding errors in the algorithm that picks a number in a range, which is unacceptable for a simulation, but may actually be better than a real coin toss [2]. The raw RNG is also flawed but not that badly [3]
[1] https://fuglede.dk/en/blog/bias-in-net-rng/
[2] https://arxiv.org/abs/2310.04153
[3] https://gist.github.com/fuglede/772402ecc3997ada82a03ce65361...
I'm assuming I either hit an PRNG bug (after all, I encountered a compiler bug in university already), or more likely, that I simply imagined the issue or bad bad luck with the data. Never did a statistical analysis after all.