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 <>
The need for weighted random choices is so common that it is addressed as a "common task" in the docs:

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.
Date User Action Args
2013-08-26 17:23:45aisaacsetrecipients: + aisaac
2013-08-26 17:23:45aisaacsetmessageid: <>
2013-08-26 17:23:45aisaaclinkissue18844 messages
2013-08-26 17:23:44aisaaccreate