I know how to generate ordered combinations, but how do I generate unordered combinations (please tell me the fastest way because I can only think of slow ways to do it)...
(The order does not matter for example:
if ABCD shows up, ADCB should not show up.
I would like it done with loops since I am going to take the information from arrays.