Randomized Algorithm https://en.wikipedia.org/wiki/Randomized_algorithm https://en.wikipedia.org/wiki/Reservoir_sampling