Hi,
I have the following code sent to me by Reeza:
data random;
array s(60) s1-s60 (60*0);
array p(6) p1-p6;
do i=1 to 6;
do while(p(i)=.);
p(i)=floor(rand('uniform')*60+1);
if s(p(i))=0 then s(p(i))=1;
else p(i)=.;
end;
end;
keep p1-p6;
call sortn(of p(*));
run;
This code create six random numbers from 1 to 60 without duplicating them.
Now i need a loop to create 60 lines with diferente possibilities, the sequence (can't,may not) duplicate
What i mean: if the sequence is: 1,2,3,4,5,6 the next line may not duplicate, so it can be any other sequence,
1,2,3,4,5,7 or 13,24, 25,30,57,58
Thanks in advance,
Rodrigo
... View more