Last active
December 18, 2017 07:44
-
-
Save saeedghx68/fe1a7ccd5885f85b8cd6e6ba872af7d5 to your computer and use it in GitHub Desktop.
Generate unique id for using reporting in javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| String.fromCharCode(Math.floor(Math.random() * (90 - 65) + 65)) + '-' + (+new Date()).toString().substr(1).match(/.{4}/g).join('-') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment