Hacker News new | ask | show | jobs
by Dylan16807 1035 days ago
That's for randomly sampling a large input?

If each piece of input is already independent, then you don't have to calculate that, you can just use the input in order.