I'm working on something and I can't quite figure it out. Hoping someone here can provide an answer. Mathematics goes with Melodic Rock, right?
So I have 9 groups of value. Let's say there are two values (A & B) in each group. I need to create a table of all the possible combinations.
I do not want to use both A and B from any of the groups in the same combination and I must have at least one value from each group. Example:
Group 1 a & b
Group 2 a & b
Group 3 a & b
etc...
The first group would be [a a a a a a a a a]. The second group might be [a b a a a a a a a].
Obviously I'd like to put this into some kind of loop. For the table, I can write each letter on a separate row, as long as I have some other value in a column that identifies all nine rows as a combination.
Hope that made sense. Thanks in advance if you know how to help.