Module weighted
reservoir_sampling
An implementation of Algorithm A-Res (https://en.wikipedia.org/wiki/Reservoir_sampling#Algorithm_A-Res)
A-Res