lundi 6 juillet 2020

How to set a specific min and max to random number

I wanted to print a random number that starts with 30 and ends with 95. But it still prints 29 and lower. Here's my the code of formula that I used.

ran_num = (95 - 30 + 1) + 30;



Aucun commentaire:

Enregistrer un commentaire