Join us at MongoDB.local London on 7 May to unlock new possibilities for your data. Use WEB50 to save 50%.
Register now >
Docs Menu
Docs Home
/ /
Native Methods

_rand()

_rand()
Returns:A random number between 0 and 1.

This function provides functionality similar to the Math.rand() function from the standard library.

Back

_isWindows()