try something like this untested syntax.
compute randnum = rv.uniform(0,1).
sort cases by randnum.
compute ranorder = $casenum.
recode ranorder (1 thru 6 =1)(7 thru 12=2) (else=3) into mygroup.
value labels mygroup
1 'first group'
2 'second group'
Hope this helps.
Social Research Consultants
University Park, MD USA
Martin Sherman wrote:
> Dear list: I have 36 subjects from which I want to randomize 12 of
> them into two groups (six in a group). Does anyone know the
> programing that I could use to accomplish this. thanks, martin
> Martin F. Sherman, Ph.D. Professor of Psychology Loyola College 222 B
> Beatty Hall 4501 North Charles Street Baltimore, MD 21210
> 410 617-2417 (Office) 410 617-5341 (FAX) firstname.lastname@example.org