[issue41311] Add a function to get a random sample from an iterable (reservoir sampling)

Oscar Benjamin report at bugs.python.org
Fri Jul 2 13:34:09 EDT 2021


Oscar Benjamin <oscar.j.benjamin at gmail.com> added the comment:

I was contacted by someone interested in this so I've posted the last version above as a GitHub gist under the MIT license:
https://gist.github.com/oscarbenjamin/4c1b977181f34414a425f68589e895d1

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41311>
_______________________________________


More information about the Python-bugs-list mailing list