3 ms·
Can we fetch say, 10 articles after the server-generated random number, and then choose a random article from that? Intuitively, this should even the selection
by cabirum 3y ago
Can we fetch say, 10 articles after the server-generated random number, and then choose a random article from that? Intuitively, this should even the selection chance, but the math evades me
- sillysaurusx 3y agoWe could take the HN route of keeping all wikipedia articles in memory at all times, then just take a random sample of the list. In an alternate universe where Lisp dominated, Wikipedia's random article button is in fact implemented this way.