| Store | Cart

Re: [Python-Dev] PEP 506 secrets module

From: Guido van Rossum <gvan...@gmail.com>
Sat, 17 Oct 2015 16:03:35 -0700
Yes, randrange(n) does that.

--Guido (mobile)
On Oct 17, 2015 2:28 PM, "Brian Gladman" <b...@gladman.plus.com> wrote:

> > Guido van Rossum wrote:>> > I'm fine with dropping the 3rd arg. But I find the argument to> > introduce a new spelling for 1-arg randrange() weak.>> I should stress that my preference for randbelow over randrange was> based purely on their proposed functionality and not on their names.>> I do however have a preference for a function of minimum required> functionality, i.e. one that allows only a single parameter (N) to> set the range 0 .. N-1.> _______________________________________________> Python-Dev mailing list> Pyth...@python.org> https://mail.python.org/mailman/listinfo/python-dev> Unsubscribe:> https://mail.python.org/mailman/options/python-dev/guido%40python.org>

_______________________________________________
Python-Dev mailing list
Pyth...@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/python-dev-ml%40activestate.com

Recent Messages in this Thread
Brian Gladman Oct 17, 2015 09:25 pm
Guido van Rossum Oct 17, 2015 11:03 pm
Messages in this thread