4 ms·How to Pick a Random Element from an Infinite Stream4 points by lawrencewu 9y agotantalor 9y ago> infinite stream See https://en.wikipedia.org/wiki/Halting_problem https://en.wikipedia.org/wiki/Halting_problemqbrass 9y agoYou don't have wait for the sampling loop to finish if you're willing to trade time for accuracy.