Do you mean you have 24 unique numbers and you need to generate all combinations of groups of 6 to use in the National Lottery?
That's 134,596 combinations.
I don't know of any software that does this, I would just crunch it out via a spreadsheet/VB program.