Skip to content

Instantly share code, notes, and snippets.

@wtfaremyinitials
Created May 14, 2015 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wtfaremyinitials/3849f41b203585625c3a to your computer and use it in GitHub Desktop.
Save wtfaremyinitials/3849f41b203585625c3a to your computer and use it in GitHub Desktop.
var printAllNumbers = function() {
for(var i=0; i<Math.pow(36, 6); i++) {
var str = "";
for(var j=0; j<7; j++) {
var char = Math.floor(i / Math.pow(10, j)) % 36;
if(char >= 26)
char += 22;
else
char += 97;
str += String.fromCharCode(char);
}
console.log(str);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment