Message223746
Need to have a function for weighted randomization:
given a dictionary: key -> weight (= non-negative number), return a key of the dictionary with the probability proportional to its weight. This capability is basic and is badly missing. |
|
Date |
User |
Action |
Args |
2014-07-23 17:08:19 | dkorchem | set | recipients:
+ dkorchem |
2014-07-23 17:08:19 | dkorchem | set | messageid: <1406135299.72.0.385494554352.issue22048@psf.upfronthosting.co.za> |
2014-07-23 17:08:19 | dkorchem | link | issue22048 messages |
2014-07-23 17:08:19 | dkorchem | create | |
|