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 dev00790
Recipients dev00790, mark.dickinson, steven.daprano
Date 2020-04-25.22:26:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587853589.94.0.48167982649.issue40388@roundup.psfhosted.org>
In-reply-to
Content
Code as requested is similar to the below:

N = <40 digit int>
sequence=range(1,N)
a = random.choice(sequence)

Since you class the error previously mentioned as an exception, what function should be used instead for choosing a random integer between 1 and including N-1?
History
Date User Action Args
2020-04-25 22:26:30dev00790setrecipients: + dev00790, mark.dickinson, steven.daprano
2020-04-25 22:26:29dev00790setmessageid: <1587853589.94.0.48167982649.issue40388@roundup.psfhosted.org>
2020-04-25 22:26:29dev00790linkissue40388 messages
2020-04-25 22:26:29dev00790create