Open tschaffter opened 3 years ago
Display 1 or more random challenges (similar to Wikipedia random page). It would be nice if this could be as a sorting strategy.
Use $sample provided by MongoDB.
Limitation:
$sample
Motivation
Display 1 or more random challenges (similar to Wikipedia random page). It would be nice if this could be as a sorting strategy.
Proposed solution
Use $sample provided by MongoDB.
Limitation:
$sample
takes in a seed for the RNG. If it did, we could have used it to query a second and more pages of results.