For example: say I wanted all possible combinations of 0-2 up to 3 digits the code would return the following:
0
1
2
00
01
02
10
11
12
20
21
22
000
001
002
010
020
011
022
012
021
100
101
102
110
111
112
120
121
122
200
201
202
210
220
211
221
212
222