How to retrieve a row, biased by populatity?

Yitzchak Scott-Thoennes sthoenna at gmail.com
Fri Aug 24 18:47:09 BST 2012


On Fri, Aug 24, 2012 at 5:06 AM, Abigail <abigail at abigail.be> wrote:
> On Tue, Aug 21, 2012 at 07:35:55PM -0700, Yitzchak Scott-Thoennes wrote:
>> The single pass approach, as given in perlfaq "How do I select a random line from a file?" adapts to work here too.
> It's a classical problem, and IIRC, discussed by Knuth's The Art of Computer Programming, Vol 1.

Yes, I've read it there; I just figured perlfaq was readily accessible
to more people :)


More information about the london.pm mailing list