spilliton/randumb — pull request #8 by mceachen (2012-06-04 03:43:20+00:00)
Title: Added ranking column and scalar

This lets randumb be a little less random and a bit more probabilistic, by letting the caller specify a "ranking" column that must be numeric, and the larger the value in that column, the more likely that row will be returned.

In the case of "rated" entities, it would let higher-rated entities show up more likely than lower rated entities.