code: public final void reset() {
                  for (int i = 0; i < position.length; i++) {
                          position[i] = i;
                  }
                  permLeft = new BigInteger(permTotal.toString());
          }
docs: Resets the permutation generator.