[issue18844] allow weights in random.choice

Antoine Pitrou report at bugs.python.org
Wed Aug 6 18:21:49 CEST 2014


Antoine Pitrou added the comment:

I don't want to speak for Raymond, but the proposed API looks good, and it seems "Roulette Wheel 2" should be the implementation choice given its characteristics (simple, reasonably good and balanced performance).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18844>
_______________________________________


More information about the Python-bugs-list mailing list