I also would like to sort the values that are greater than 10 in one vector and less than or equal to 10 in another vector. -- View this message in context: http://r.789695.n4.nabble.com/Running-a-loop-of-random-generated-sums-tp4649013p4649070.html Sent from the R help mailing list archive at Nabble.com.