Thanks. bb=replicate(2, rnorm(20)) was very useful for me. -- View this message in context: http://r.789695.n4.nabble.com/How-to-create-a-random-matrix-tp901667p3912806.html Sent from the R help mailing list archive at Nabble.com.