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 josiahcarlson
Recipients
Date 2006-11-08.16:45:34
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=341410

2.5 has the same behavior.

One workaround (until it gets fixed) is to do the following...

def myrandrange(start, stop, step):
    return start + random.randrange((stop-start)//step)*step

random.randrange should change to do some variant of the
above, given sane start, stop, step arguments.
History
Date User Action Args
2007-08-23 14:49:28adminlinkissue1590891 messages
2007-08-23 14:49:28admincreate