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.