You are here : python_3randomrandomrandrange

random.randrange() - random

Return a randomly selected element from range(start, stop, step).  This is
equivalent to choice(range(start, stop, step)), but doesn’t actually build a
range object.


Syntax

random.randrange(stop)


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference