Skip to content

Instantly share code, notes, and snippets.

@ambidexterich
Created August 31, 2015 21:31
Show Gist options
  • Save ambidexterich/375bdfd72ebf948adf3d to your computer and use it in GitHub Desktop.
Save ambidexterich/375bdfd72ebf948adf3d to your computer and use it in GitHub Desktop.
Random String Generator
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