by majorchord · 2mo ago · 0 comments
Perhaps a math/statistics expert can tell me why that is a bad idea.
I didn't get it at first, either, and the Wikipedia article didn't do it for me. This explanation finally got me there: https://florian.github.io/reservoir-sampling/