text: u can do i using java... use jcreator.... i am guessin u r familiar wid programming... so use enough number of nested for loops in a giant do while loop and set da condition in da while section to stop once u reach ur specified number of permutations and  compbinations... u can also try out excel add oons dat u can find on da net to do it.. but excel wont b as flexible as java... if ur familiar with c++.. u can follow da same way as in java...