Incredibly Fast Random Sampling in Python

Ethan Koch
4 min readJun 10, 2019

We need speed in random sampling. How fast can we go?

Need random sampling in Python? Generally, one can turn to therandom or numpy packages’ methods for a quick solution. In fact, we solve 99% of our random sampling problems using these packages’ methods.

But, we recently came across a random sampling problem that we could not solve with such ease. For our random…

--

--