Created
April 6, 2017 16:43
-
-
Save geritol/ad9fd33025a50e26a6cc96142b4f9684 to your computer and use it in GitHub Desktop.
Random string js
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
// random string | |
// random number - convert it to base 36 (0-9a-z) - remove the '0.' from the beginning | |
Math.random().toString(36).substr(2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment