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
[ 2.8 ms ] story [ 11.1 ms ] threadNo comments yet.