vendredi 6 mars 2015

Generate random number bigger than 32767

I am trying to assign to a variable a number between 0 and 65535 exactly, but i can't because RAND_MAX is set to 32767. How can I generate a random number bigger than 32767 and at the same time with the possibility that the number generated is between 0 and 65535?





Aucun commentaire:

Enregistrer un commentaire