Created
March 7, 2019 07:52
-
-
Save nanmu42/0a527c43c973074b3ea1bfb06b0ece05 to your computer and use it in GitHub Desktop.
Javascript Ramdom String With Specific Length
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
// change 10 to the length desired | |
[...Array(10)].map(i=>(~~(Math.random()*36)).toString(36)).join('') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment