dimanche 2 octobre 2016

c++ - rand() between number which are multiple

So I would like to have a random number that is a multiple of 32, so, 32, 64, 96, 128...

rand() return a number which is not always a multiple of 32 of course. How could I proceed ?




Aucun commentaire:

Enregistrer un commentaire