- Reference >
- mongo Shell Methods >
- Native Methods >
- rand()
rand()¶
- _rand()¶
Returns: A random number between 0 and 1. This function provides functionality similar to the Math.rand() function from the standard library.
Thank you for your feedback!
We're sorry! You can Report a Problem to help us improve this page.