Is there an shortcut (compared to "manually" swap row vectors) for the random permutation of rows of a matrix? "sample" does not act on the element row vectors as a whole. Thanks Pascal