You are here : python_3randomrandomrandint

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