dimanche 18 février 2018

How can i use the random function with variables?

I want creating a random number generator which allows to define the min and max.

How can i fix this code :

import random 

print ('min =')
MIN = input()
print ('max =')
MAX = input()

print (random.randrange(MIN, MAX))




Aucun commentaire:

Enregistrer un commentaire