Message196229
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. |
|
Date |
User |
Action |
Args |
2013-08-26 17:23:45 | aisaac | set | recipients:
+ aisaac |
2013-08-26 17:23:45 | aisaac | set | messageid: <1377537825.13.0.508607501106.issue18844@psf.upfronthosting.co.za> |
2013-08-26 17:23:45 | aisaac | link | issue18844 messages |
2013-08-26 17:23:44 | aisaac | create | |
|