如何使用sas中的ranuni()函数生成10到50之间的随机整数.
为了生成1到5之间的随机整数,我使用了这段代码
data random; do i=1 to 10; random_int = int(ranuni(0) * 5 + 1); output; end;
跑;
sas
sas ×1