SAS中文论坛
标题:
求助用sas生成随机数
[打印本页]
作者:
shiyiming
时间:
2007-8-6 15:41
标题:
求助用sas生成随机数
用sas生成25个1-230内的整数
请教
作者:
shiyiming
时间:
2007-8-6 22:29
标题:
Re: 求助用sas生成随机数
[code:6ea98]data temp1;
do i=1 to 230;
output;
end;
run;
proc surveyselect data=temp1 method=srs n=25 out=temp2;
run;[/code:6ea98]
作者:
shiyiming
时间:
2007-8-7 23:09
标题:
Re: 求助用sas生成随机数
data dd;
do i=1 to 25;
y=floor(1+250*ranuni(0));
output;
end;
run;
proc print data=dd;run;
欢迎光临 SAS中文论坛 (https://mysas.net/forum/)
Powered by Discuz! X3.2