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 rhettinger
Recipients cephalo, rhettinger
Date 2007-12-29.16:56:40
SpamBayes Score 0.024543744
Marked as misclassified No
Message-id <1198947401.25.0.822528126211.issue1704@psf.upfronthosting.co.za>
In-reply-to
Content
Attaching the whole file isn't a step in the right direction.  The 
preferred approach is to isolate the problem as tightly as possible.

This report is dubious because, I can't get the following to fail:

from random import seed, randint
seed('mystart')
while 1:
   assert 0 <= randint(0, 1452) <= 1452

There is also no failure with:

preshuffle = [None] * 1453
while 1:
   assert 0 <= randint(0, len(preshuffle)-1) <= 1452

Make sure that PWRand.randint() really does call randint() and not 
randrange() and that it doesn't adjust the range of inputs.
History
Date User Action Args
2007-12-29 16:56:41rhettingersetspambayes_score: 0.0245437 -> 0.024543744
recipients: + rhettinger, cephalo
2007-12-29 16:56:41rhettingersetspambayes_score: 0.0245437 -> 0.0245437
messageid: <1198947401.25.0.822528126211.issue1704@psf.upfronthosting.co.za>
2007-12-29 16:56:41rhettingerlinkissue1704 messages
2007-12-29 16:56:40rhettingercreate