Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.