This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients dev00790, mark.dickinson, steven.daprano
Date 2020-04-25.22:57:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20200425225349.GD10268@ando.pearwood.info>
In-reply-to <1587853589.94.0.48167982649.issue40388@roundup.psfhosted.org>
Content
Take your pick between either of these:

random.randrange(1, N)
random.randint(1, N-1)

https://docs.python.org/3/library/random.html#functions-for-integers
History
Date User Action Args
2020-04-25 22:57:44steven.dapranosetrecipients: + steven.daprano, mark.dickinson, dev00790
2020-04-25 22:57:44steven.dapranolinkissue40388 messages
2020-04-25 22:57:44steven.dapranocreate