On 12/23/2011 09:53 PM, Jim Lemon wrote: > CaribMatrix<-matrix(order(sample(200:500,579,TRUE),nrow=579,ncol=3) Oops, that should be CaribMatrix<-matrix(sort(sample(200:500,579,TRUE),nrow=579,ncol=3) Jim