how i can select randomly "N" rows of a matrix? for example
M =
[ a12, a12] [ a21, a22] [ a31, a32] [ a41, a42]
For N=2
B =
[ a12, a12] [ a31, a32] [ a21, a22]
matrixrandomlyrows
[ a12, a12] [ a21, a22] [ a31, a32] [ a41, a42]
[ a12, a12] [ a31, a32] [ a21, a22]
Best Answer