var total = 10000; // 总数var promises = [];var skip;for (var i = 0; i < N; i++) {
var skip = Math.round(Math.random() * total);
promises.push(Model.find({}).skip(skip).limit(1).exec());}Promise.all(promises).then(function (results) {
// balabala});
温馨提示:答案为网友推荐,仅供参考