You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
timotheecour
changed the title
1st call to rand(1.0) generates predictable values < 1e-4 for seeds in 0..<26844
1st call to rand(1.0) generates predictable values < 1e-4 for seeds in 0..<26844, unlike C++, python, D, ...
Dec 8, 2020
EDIT: very related to this: nim-lang#8589
IMO, still a bug, other languages don't have this issue:
nim: fails
python: works
prints:
D: works
prints:
C++ works
prints:
links
https://stackoverflow.com/questions/19665818/generate-random-numbers-using-c11-random-library
https://channel9.msdn.com/Events/GoingNative/2013/rand-Considered-Harmful
The text was updated successfully, but these errors were encountered: