<p dir="ltr">Yes, randrange(n) does that.</p>
<p dir="ltr">--Guido (mobile)</p>
<div class="gmail_quote">On Oct 17, 2015 2:28 PM, "Brian Gladman" <<a href="mailto:brg@gladman.plus.com">brg@gladman.plus.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Guido van Rossum wrote:<br>
<br>
> I'm fine with dropping the 3rd arg. But I find the argument to<br>
> introduce a new spelling for 1-arg randrange() weak.<br>
<br>
I should stress that my preference for randbelow over randrange was<br>
based purely on their proposed functionality and not on their names.<br>
<br>
I do however have a preference for a function of minimum required<br>
functionality, i.e. one that allows only a single parameter (N) to<br>
set the range 0 .. N-1.<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/guido%40python.org" rel="noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/guido%40python.org</a><br>
</blockquote></div>