全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3687 7
2011-08-30
Hello,
I have tried the program:
复制代码

and it returned:
0.1849625698
0.9700887157
0.3998243061
0.2593986454
0.9216025779
0.9692773498
0.5429791731
0.5316917228
0.0497940262
0.0665665516

but when i re-ran the program, the result didn't change...
I don't know why...
*** the function RANUNI returns a random value from (0,1) doesn't it? ***

thanks in avance!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2011-8-30 19:18:50
because the random seed is keep constant,you can try with random seed 0
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-8-30 20:03:51
爱萌 发表于 2011-8-30 19:18
because the random seed is keep constant,you can try with random seed 0
thank you very much~~ and i found the explanation in the help document:

Random-number functions and CALL routines generate streams of random numbers from an initial starting point, called a seed, that either the user or the computer clock supplies. A seed must be a nonnegative integer with a value less than 231-1 (or 2,147,483,647). If you use a positive seed, you can always replicate the stream of random numbers by using the same DATA step. If you use zero as the seed, the computer clock initializes the stream, and the stream of random numbers is not replicable.

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-8-30 21:22:08
learning,thank you very much~~~
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2012-2-23 22:44:50
thx for sharing
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2012-2-24 10:12:43
伪随机数
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群