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