Created
February 6, 2014 08:47
-
-
Save snowman-repos/8840535 to your computer and use it in GitHub Desktop.
Generate a random set of alphanumeric characters
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
generateRandomAlphaNum = (len) -> | |
rdmString = "" | |
while rdmString.length < len | |
rdmString += Math.random().toString(36).substr(2) | |
rdmString.substr 0, len |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment