Last active
January 8, 2019 04:13
-
-
Save leplay/9429c87cca752178d10de56cb753eb88 to your computer and use it in GitHub Desktop.
Random String 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
// https://stackoverflow.com/a/1349426 | |
let r = Math.random().toString(36).substr(2, 5) | |
console.log("random", r) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment