Docs Menu

_rand()

참고

여기에 나열된 네이티브 메서드는 레거시 mongo shell을 위한 것입니다.

mongosh 에서 네이티브 메서드를 사용하려면 mongosh 의 네이티브 메서드를 참조하세요.

_rand()
반환합니다:A random number between 0 and 1.

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