Reservoir Sampling (jeremykun.com) 2 points by timnic 13y ago ↗ HN Python snippet to sample from a (finite) stream of unknown size at random.
0 comments
[ 3.2 ms ] story [ 26.4 ms ] threadNo comments yet.