http://en.wikipedia.org/wiki/Reservoir_sampling
Activity
huonw commentedon Jul 11, 2013
I'm going to have this in my rand rewrite.
robertknight commentedon Aug 13, 2013
Hi @huonw - Missed your comment from earlier. Did you already implement something similar?
huonw commentedon Aug 13, 2013
@robertknight, nope; your code looks good.
auto merge of #8491 : robertknight/rust/7722-reservoir_sampling, r=gr…
Auto merge of rust-lang#7722 - dtolnay-contrib:float, r=giraffate