I was searching for a method for generating random numbers in C++. I came to know about rand() and srand(). Suddenly an idea tweaked in my mind of merging rand as a parameter of srand. i.e. srand(rand)
I just wanted to know how good is it compared to other methods of generating random numbers like using time as parameter of srand and other algorithms? Or if anyone else has some other cool tricks for generating random numbers please do comment...
Aucun commentaire:
Enregistrer un commentaire