Good!
I would like to know if with phyton you could generate a random number in a range, for example that the range is 0-100 ..
It is for a task of a course that I am doing, if you could help me I would appreciate it ..
Good!
I would like to know if with phyton you could generate a random number in a range, for example that the range is 0-100 ..
It is for a task of a course that I am doing, if you could help me I would appreciate it ..
Good day.
Look at the following link, in the second subtitle you can find the way to generate a random number according to two parameters that you pass, which would be the range you want, additional, explains the functionality of other methods around random :
from random import randint
print(randint(1, 50)) //Donde 1 y 50 son los rangos.