I've searched through this site trying to find code to generate all combination arrays (of length n) from some other array (call it the pool array) that the combination arrays are picking from.
I've found many that give all combinations equal to the size of the array (i.e. (pool array size)! many of them... that's the factorial of the pool array size)). But this isn't what im looking for. Rather, I want to generate a list of combination arrays of length smaller or equal to that of the pool array. Basically, list the actual combination arrays that yield in number nCr (for you math people)
I'd would love any code for this, since i for some reason can't come up with an effective and correct alg.
Thanks,
Pseudosig