Sorry for the delay, — It's quite impossible that you can still get all the combinations after you comment out the "Set baseNumber" of line 16. This line is responsible for getting all the "digits" right. Otherwise, you will get combinations which all have the same characters appearing at each position. (e.g. "aaa", "bbb", "ccc", "aaa", "bbb", ...)