Wikidev
CATEGORY
CONTACT
APP
Sign Up
Login
Submit
You are here :
python_3
→
random
→
randomrandint
random.randint() - random
Return a random integer N such that a <= N <= b. Alias for randrange(a, b+1).
Syntax
random.randint(a, b)
Example
Output / Return Value
Limitations
Alternatives / See Also
Reference