samedi 27 juin 2015

Using rand()/(RAND_MAX +1)

i have problem with this use of rand(): rand() / (RAND_MAX + 1.0)

I know the "simple" use for rand() (like rand() %100 + 1) but i don't understand what it does.




Aucun commentaire:

Enregistrer un commentaire