Why does rand() produce different numbers in a loop despite srand() being set once at the beginni...
Why does rand() produce different numbers in a loop despite srand() being set once at the beginning of the program?
I hope you found a solution that worked for you :)
The Content is licensed under (https://meta.stackexchange.com/help/licensing) CC BY-SA.
Attention! This video does always use the same license as the source!
Thanks to all those great people for their contributions!
(stackoverflow.com/users/18296978/mohamad-khalil)Mohamad Khalil
(stackoverflow.com/users/18519921/wohlstad)wohlstad
(stackoverflow.com/users/5169896/alexandre-s)Alexandre S.
(stackoverflow.com/users/5494370/alan-birtles)Alan Birtles
A special thanks goes out to the (stackoverflow.com/questions/79442976/why-does-rand-produce-different-numbers-in-a-loop-despite-srand-being-set-on)Stackexchange community
I wish you all a wonderful day! Stay safe :)
If anything is off, please write me at peter D.O.T schneider A.T ois42.de
srand random-seed random c++