Created
April 16, 2021 16:13
-
-
Save mcunha98/b04f93354dfc90d634c902d38937f7b0 to your computer and use it in GitHub Desktop.
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
//generate a random string and return the substring of N chars at the end | |
var rnd = "ABCDEF23456789".split('').sort(function(){return 0.5-Math.random()}).join('').substring(0, 6); | |
//OUTPUT: | |
//BC3A095 | |
//C3FA295 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment