PureBytes Links
Trading Reference Links
|
Thanks to all who responded and offered some snippets of code.
I wasn't clear about combination vs. permutation and perhaps I have the
concepts backwards, but to clarify:
Out of a list 1 through 20, I wanted 4 unique subsets of numbers like:
1, 2, 3, 4 or 10, 11, 15, 2
However, the order of the numbers are not important. Therefore, 1, 2, 3, 4
and 1, 2, 4, 3 and 3, 4, 2, 1 are treated as the same so I would accept one
and reject the rest.
The code examples appear to do exactly that.
Thanks again
|