Most pythonic way of weighted random selection

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Sat Aug 30 13:01:25 EDT 2008


Manuel Ebert, this may be related/useful:
http://code.activestate.com/recipes/498229/

Note that numpy has a bisection method/function that are probably
quite faster.

Bye,
bearophile



More information about the Python-list mailing list