Nicholas Prowse 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
New submission from Nicholas Prowse :
Filename: random.py
Location of file: /use/lib/python3.5/random.py
Function: random.choice()
Input: 40 digit integer
Expected output: no crash
Actual output: Crash
Line number: 253
Error message: "Python int too large to convert to C ssize_t"
Tr