Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to generate random id in javascript

let uid = Date.now().toString(36) + Math.random().toString(36).substr(2)
// result string would be like "l7hgwnf0qfztje7bn3"
Source by github.com #
 
PREVIOUS NEXT
Tagged: #generate #random #id #javascript
ADD COMMENT
Topic
Name
4+4 =