dimension shuffle(50) dimension group1(25), group2(25) *Create array of non-repeating values for lp=1 to 50 shuffle(lp)=lp next *Randomize the order =Rand(-1) for lp = 1 to 50 swaptoloc = INT(50 * RAND() + 1) swaptmp = shuffle(lp) shuffle(lp) = shuffle(swaptoloc) shuffle(swaptoloc) = swaptmp next *Create groups by seperating even/odd on loop counter select YourDataBase l1Idx = 1 l2Idx = 1 for lp = 1 to 50 goto shuffle(lp) if mod(lp,2) = 0 group1(l1Idx) = YourDataBaseFieldNameGoesHere l1Idx=l1Idx+1 else group2(l2Idx) = YourDataBaseFieldNameGoesHere l2Idx=l2Idx+1 endif nextHTH