全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3975 9
2014-09-29
seed1和seed2相同or不同时,随机数种子却是一条随机数流,为什么?
二维码

扫码加我 拉你入群

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

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

全部回复
2014-9-29 23:39:36
朱丽叶!哈哈!随机数都是伪随机的,已经提前设置好的。
二维码

扫码加我 拉你入群

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

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

2014-9-30 07:02:15
同问!!
二维码

扫码加我 拉你入群

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

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

2014-9-30 13:34:58
fantuanxiaot 发表于 2014-9-29 23:39
朱丽叶!哈哈!随机数都是伪随机的,已经提前设置好的。
谢谢啦
二维码

扫码加我 拉你入群

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

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

2015-1-3 12:34:03
生成伪随机数时指定的随机抽样起点。这个seed的选取是随意的,只要你设置的seed是一样的,就保证得到同样的一组随机模拟数据。
Random-number functions and CALL routines generate streams of pseudo-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 cannot be replicated.
二维码

扫码加我 拉你入群

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

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

2015-1-4 11:56:22
bakoll 发表于 2015-1-3 12:34
生成伪随机数时指定的随机抽样起点。这个seed的选取是随意的,只要你设置的seed是一样的,就保证得到同样的 ...
thank you
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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