I am doing a Monte Carlo experiment with binary matrices of different sizes and 1/0 ratios. I am interested in creating a set of matrices by swapping rows randomly. For instance:
001 010 000
000 001 010
010 000 001
How can I calculate the number of unique permutations for a given matrix size and a given number of 1s?
Thanks in advance