You had an interesting way of randomizing the row order.  Why not just initialize your for loops like this: for(j in 121:150) and for(i in 1:120)?