title: Probability of getting the same value using Math.random
body: <p>The requirement is to send a unique id to database when user click on submit button. So I am using Javascript <code>Math.random</code> method. I just want to know what are the chances or possibility to get same number and what bit size of using <code>Math.random</code>.</p>