Created
April 21, 2021 12:47
-
-
Save zhanser1k/de9a4994d565c05ded327cb209ba7d83 to your computer and use it in GitHub Desktop.
Random ID Generation Function
This file contains 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
function getRandomId() { | |
return ( | |
Date | |
.now() | |
.toString(36) + | |
Math | |
.random() | |
.toString(36) | |
.substr(2, 5)) | |
.toUpperCase(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment