Hi,

Is there a good way to get a random document from a database. I'm currently
using a view that does:

function(doc) {
    emit(Math.random(), doc);
};

But as this isn't deterministic, I'm pretty sure it's wrong.

I've done a bit of googling, and haven't found anything.

Cheers,

Peter



--
Peter Braden

<http://PeterBraden.co.uk/>

Reply via email to