Can anyone explain? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can anyone explain?

what is randint function in python?

8th May 2018, 3:22 PM
Surinder Kumar
Surinder Kumar - avatar
1 Answer
+ 8
from the docs https://docs.python.org/3/library/random.html random.randint(a, b): Return a random integer N such that a <= N <= b. Alias for randrange(a, b+1). pretty straightforward just return a random number inside a given range
8th May 2018, 3:56 PM
Burey
Burey - avatar