Given non-negative integers <big> '''m''' </big> and <big> '''n'''</big>, generate all size <big> '''m''' </big> [http://mathworld.wolfram.com/Combination.html combinations] of the integers from <big> '''0'''</big> (zero) to <big> '''n-1''' </big> in sorted order (each combination is sorted and the entire table is sorted).
If it is more "natural" in your language to start counting from <big> '''1'''</big> (unity) instead of <big> '''0'''</big> (zero),
<br>the combinations can be of the integers from <big> '''1'''</big> to <big> '''n'''. </big>