Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Created by Guest
Created on Oct 11, 2023

define the random seed manually, for $rand and $sample

It will be great if an additional paramater to define the seed for $rand and $sample could be use.
  • Guest
    Aug 11, 2025
    In my team, we use $seed to generate random data and the absence of seed do not allow complete reproductibility of our pipeline