Can anyone explain? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Can anyone explain?

what is randint function in python?

8th May 2018, 3:22 PM
Surinder Kumar
Surinder Kumar - avatar
1 Réponse
+ 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