Published
- 1 min read
random id js
The solution for this is noted below
random id js
Solution
var ID = function () {
// Math.random should be unique because of its seeding algorithm.
// Convert it to base 36 (numbers + letters), and grab the first 9 characters
// after the decimal.
return '_' + Math.random().toString(36).substr(2, 9)
}
Try other methods by searching on the site. That is if this doesn’t work