Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

1 line unique id

// using Date
new Date().getTime().toString().substring(9,13)

// using Random
Math.ceil(Math.random()*100)
// Note: add more 0s in 100 if you want to make it even more unique.
 
PREVIOUS NEXT
Tagged: #line #unique #id
ADD COMMENT
Topic
Name
7+4 =