MongoDB.local SF, Jan 15: See the speaker lineup & ship your AI vision faster. Use WEB50 to save 50%
Find out more >
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()