Randomly permute the rows of a matrix.
permute.rows(A)
A
a matrix for which its rows have to be permuted.
the matrix with permuted rows.