dimanche 18 avril 2021

How do you prove that random numbers generated in C++ are actually random? [duplicate]

In C++,rand and srand are the two methods two generate pseudo-random numbers. I want to understand the code for these 2 functions. How are they implemented and how is it guaranteed to be a random number? My algorithm depends on this and hence I need to know and cannot accept on mere faith. Can you elaborate the entire process and prove that it is indeed random?




Aucun commentaire:

Enregistrer un commentaire