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