lundi 23 novembre 2015

How to get a random number with a minimum value

I am trying to get a random number that is greater than a minimum value. Is there a way to do this?

Doing rand(min..max) gives a random number in a range (min < number < max), but I don't want to specify the maximum.




Aucun commentaire:

Enregistrer un commentaire