Created
February 15, 2013 06:21
-
-
Save yckart/4958824 to your computer and use it in GitHub Desktop.
Random alphanum with javascript. based upon: https://gist.github.com/hasenj/3662865
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
| var randomAlphaNum = function () { | |
| var alpha = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' | |
| return alpha[Math.round(Math.random() * alpha.length)]; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment