Whereas the help(random.randrange) command looks up the docstring from the source in random.py:
When you call randrange(stop), you’re really calling randrange(start) with default values for stop=None and step=1, and it effectively uses the start value for stop:
And the full docs page actually warns against using keyword arguments, to avoid any unexpected results from this argument juggling:
Keyword arguments should not be used because they can be interpreted
in unexpected ways. For example randrange(start=100) is interpreted
as randrange(0, 100, 1).
Choose a random item from range(stop) or range(start, stop[, step]).
Will also add the suggestion to not use keyword arguments because randrange(stop=10) raises a TypeError and randrange(start=10) gives an unexpected result. A stop keyword argument only makes sense when start has been specified: randrange(start=100, stop=200).