I would think so, but I can't seem to figure it out. I'm 99% sure there's a way though so I'll move it to the stats forum.
Here's the random variable method:
data _random;
set sashelp.class;
rand = rand('normal', 0, 25);
run;
proc sort data=_Random;
by rand;run;
data groups;
set _random;
if _n_=1 then group=0;
if mod(_n_, 2) = 1 then group+1;
run;
... View more