I have a matrix described as below:
1 0 0 0 0 1 1 0 0 0 1 1 1 0 0 1 1 1 0 0 1 0 1 1 1
I want to shuffle it into all the possible combinations, can anybody suggest a method for shuffling the matrix without changing its internal numbers. In my matrix I have 13 ones, the rest zeros and when I shuffle, I want to have these 13 ones in all possible combinations.
I won't give you the code (because then your grade would be mine, right?) but here's an idea:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With