felipernb/algorithms.js — pull request #57 by eush77 (2014-06-07 15:27:27+00:00)
Title: Add reservoir sampling

[Reservoir sampling](https://en.wikipedia.org/wiki/Reservoir_sampling) is O(n) algorithm for randomly choosing a sample of K elements from array.