dimanche 20 mars 2016

Error in using rand function

I tried using the rand() function with min = 4 and max = 10:

s = rand() % 10 + 4;

and some of the results were above 10.How is this possible?




Aucun commentaire:

Enregistrer un commentaire