vendredi 5 juillet 2019

How to generate random numbers in Python?

I am using Python 3.6. I am unable to generate a random number from it.

import random
value = random.randint(1,10) # generate random b/w 1 & 10
print(value)




Aucun commentaire:

Enregistrer un commentaire