Random grouping


dan
04-09-2007, 10:02 AM
Hi,

I need to generate two random groups from a dataset. The dataset contain 20 columns (10 files or values for each column). I should select randomly and sum up (and avoiding repetition) the values of 6 columns and the values of 14 columns. The final matrix should have 3 columns: first (constant or identificative value), second (sum of the 1st group-6 values) and third (sum of the 2nd group-14 values).

Anyone knows how to do it?

Thnaks in advance, Daniel