I want find many random records doing only 1 query.
I tried:
var count = db.collections.count()
var rand = function(){return Math.floor( Math.random() * count )}
db.collection.find().limit(-1).skip(rand()).next();
But this returns only one document. I need to get more random records.
How can I do this?