javargas wrote: > How can I generate a random permutation between rows of a matrix M (of m rows > and n columns)? maybe M[ sample(1:m), ] -- Ramón Casero Cañas http://www.robots.ox.ac.uk/~rcasero/wiki http://www.robots.ox.ac.uk/~rcasero/blog