I need to generate unique id numbers on the fly using javascript. In the past, I\'ve done this by creating a number using time. The number would be made up of the four digi
I have done this way
function uniqeId() { var ranDom = Math.floor(new Date().valueOf() * Math.random()) return _.uniqueId(ranDom); }