Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js random unique id

function generateId() {
       
  return Math.random().toString(36).substring(2) +
    (new Date()).getTime().toString(36);
}

console.log(generateId())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #random #unique #id
ADD COMMENT
Topic
Name
8+6 =