[issue40388] random.choice integer overflow v3.5.2
Nicholas Prowse
report at bugs.python.org
Sat Apr 25 18:26:29 EDT 2020
Nicholas Prowse <nick5990 at yahoo.co.uk> added the comment:
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?
----------
status: pending -> open
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40388>
_______________________________________
More information about the Python-bugs-list
mailing list