mardi 30 août 2016

c++ How to generate random number between 1 and 10^6?

I realize that the maximum number rand() can generate is 32767. Is there anyway I can generate random numbers with value between 1 and 10^6(1 million) without external libraries?




Aucun commentaire:

Enregistrer un commentaire