mardi 7 janvier 2020

Can I specify conditions for the rand() function?

I want to generate a random number that will be in the range of 1 to 6 (I know how to do that) but won't be equal to 4 other variables (for instance, their names are "num1", "num2", "num3" and "num4") in the algorithm. Can I do that? and how?




Aucun commentaire:

Enregistrer un commentaire