Message18340
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
|
|
Date |
User |
Action |
Args |
2007-08-23 14:17:09 | admin | link | issue812202 messages |
2007-08-23 14:17:09 | admin | create | |
|