It doesn't matter as long as no duplicate in the combination
I'll take that as a yes. It does matter because it needs to be catered for in the code you're asking for; it just means that the process of finding the combinations could be a lot longer, or that we have to do some deduplicating before searching for combinations.
p45cal Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.