Created
August 31, 2015 21:31
-
-
Save ambidexterich/375bdfd72ebf948adf3d to your computer and use it in GitHub Desktop.
Random String Generator
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
Array.apply(null, Array(12)).map(function (i) { | |
var c = Math.floor(Math.random()*2); | |
return String.fromCharCode(Math.floor(Math.random()*(127-33)+33))[c?'toUpperCase':'toLowerCase'](); | |
}).join('') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment