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 aisaac
Recipients aisaac
Date 2013-08-26.17:23:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377537825.13.0.508607501106.issue18844@psf.upfronthosting.co.za>
In-reply-to
Content
The need for weighted random choices is so common that it is addressed as a "common task" in the docs:
http://docs.python.org/dev/library/random.html

This enhancement request is to add an optional argument to random.choice, which must be a sequence of non-negative numbers (the weights) having the same length as the main argument.
History
Date User Action Args
2013-08-26 17:23:45aisaacsetrecipients: + aisaac
2013-08-26 17:23:45aisaacsetmessageid: <1377537825.13.0.508607501106.issue18844@psf.upfronthosting.co.za>
2013-08-26 17:23:45aisaaclinkissue18844 messages
2013-08-26 17:23:44aisaaccreate