In which Mongo's document can we found the Mathematics functions such as Math.r

19 views
Skip to first unread message

olis...@gmail.com

unread,
Jan 6, 2018, 2:07:49 AM1/6/18
to mongodb-user
As we know that the function Math.random() can be used to return a random number
pradb>Math.random()
0.3882212128970949

But I couldn't find the usage of this function in any MongoDB's document. 
If you could, please give me some related urls. Thanks

Wan Bachtiar

unread,
Jan 8, 2018, 9:37:59 PM1/8/18
to mongodb-user

Hi,

I assumed that you’re invoking this method from the mongo shell. The mongo shell is an interactive JavaScript interface to MongoDB, and the method Math.random() originates from JavaScript built-in object Math. You can see more information about the random function on Math.random() JavaScript reference page.

Regards,
Wan.

oliseh oliseh

unread,
Jan 12, 2018, 8:25:20 AM1/12/18
to mongod...@googlegroups.com
Hi, Wan
Thank you for your update

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to a topic in the Google Groups "mongodb-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongodb-user/wEmuBIQxRks/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mongodb-user+unsubscribe@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/2a391f6c-b145-42a7-9db2-3af404f4a0fa%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages