Created
May 14, 2015 17:28
-
-
Save wtfaremyinitials/3849f41b203585625c3a to your computer and use it in GitHub Desktop.
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
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