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 ronrivest
Recipients
Date 2003-09-25.04:52:24
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The result of 
    random.randint(2**64,2**65-1) 
is always even!

(I was trying to find some large prime numbers, and
was puzzled by the fact that none were turning
up.  Finally, I discovered that randint wasn't really
returning "random" integers as desired, but only
even ones.)

I'm not sure what the cause of the problem is, but
randint should work properly, even when the given
endpoints are large...

Thanks...

        Ron Rivest
History
Date User Action Args
2007-08-23 14:17:09adminlinkissue812202 messages
2007-08-23 14:17:09admincreate