|
谢谢 foozhencheng 和 suzhzh 。
问题再详细补充一下:
我用的是SAS9.1.3 。 我看到SAS提供的均匀分布的随机数函数有两个 : ranuni() 和 uniform()
还有一个均匀分布随机数的 CALL RANUNI Routine 。
从系统自带帮助文件可以看出 , CALL RANUNI Routine 对随机数种子和随机数流有更多控制 。
The CALL RANUNI routine, an alternative to the RANUNI function, gives greater control of the seed and random number streams.
If you want to change the seed value during execution, you must use the CALL RANUNI routine instead of the RANUNI function.
对ranuni() 和 uniform() 这两个函数的区别, 却没有任何说明 。
我的问题是, 这两个函数的区别在哪里 , 其产生随机数的算法有何不同 , 产生的随机数流有什么不同 ? 在什么情况下用ranuni() , 又在什么情况下用uniform() ?
|