Hi everyone
I'm trying to create all possible combinations without repetitions.
I need to create 3 numbers with values from 1-10 with no repetitions.
Ex: 1-2-3
1-3-4
1-2-4
1-3-5
2-3-5
and so on..... I need a loop or something to create all this and fill a 2d array[120,3]

2 answers
don't know whether you want a [120,3] array or all possible values, but here's the latter.
answered one year ago by:
2309
MadHatter's code works but doesn't exclude repetitions.
I've adjusted it below to do that and used ints rather than bytes to avoid casts:
answered one year ago by:
17279