ups...already found the solution matrix2 <- matrix1[sample(samplenumber,replace=F),] -- View this message in context: http://r.789695.n4.nabble.com/random-selection-of-elements-from-a-matrix-tp3668574p3668594.html Sent from the R help mailing list archive at Nabble.com.