Report question

Question: How to generate a permutations or combinations of n rows in m columns?