2021年医师系列《中西医助理医师》考试题库-中西医助理医师-第十九单元 子宫内膜异位症及子宫腺肌病-
医药卫生-执业医师
单选题-已知m=998917,k1=366528,k2=508531,w0=931125,w1=970710。用二阶线性同余法产生3个[0,1]区间上均匀分布的随机数,分别为( )。
单选题
A.0.4256,0.9569,0.9166
B.0.4256,0.9569,0.9176
C.0.4256,0.9579,0.9166
D.0.4261,0.9579,0.9166
E.0.4261,0.9579,0.9176
我个人认为这个应该是:E
解析:由于w2=k1w1+k2w0=366528×970710+508531×931125(mod998917)
=829298322255(mod998917)=830197m+425606(mod998917)
=425606(mod998917),
故u1=w2/m=425606/998917=0.4261;
w3=k1w2+k2w1=366528×425606+508531×970710(mod998917)
=649632642978(mod998917)=650336m+956866(mod998917)
=956866(mod998917),
故u2=w3/m=956866/998917=0.9579;
w4=k1w3+k2w2=366528×956866+508531×425606(mod998917)
=567152026034(mod998917)=567766m+916612(mod998917)
=916612(mod998917),
故u3=w4/m=916612/998917=0.9176。
本文来自zhongtiku投稿,不代表升华网立场,如若转载,请注明出处:http://54sh.com/zhiyetiku/3657206.html