Size of integers (2**32-1)

Paul Rubin phr-n2002a at nightsong.com
Tue Feb 5 05:29:33 EST 2002


Gerhard =?iso-8859-15?Q?H=E4ring?= <gh_pythonlist at gmx.de> writes:
> Btw. it looks like random.randint/randrange really want ints and won't
> accept longs. A workaround could be to use a construction like:
> 
>     print random.randrange(0, sys.maxint) * 2L

That's always zero in the lowest bit.



More information about the Python-list mailing list