I test a code:
%let i=10;
data wjx;
A=2+200*ranuni(&seed1*&i);
B=Ranbin(75,1000,0.1);
C=100*ranuni(0);
D=100*ranuni(3);
run;
proc print data=wjx;run;
wjx:
A=13.6254
B=109
C= 62.0198
D=88.3135
question:
1. when I changed seed1 or changed i(like%let i=110 ), the B,C,D gave me difference number,why?
2, when I changed the B's seed or C's seed or D's seed values,the B,C,D always stayed same, why?
data wjx;
A=2+200*ranuni(&seed1*&i);
B=Ranbin(175,1000,0.1);
C=100*ranuni(10);
D=100*ranuni(23);
run;
thanks a million!
Alex
... View more