Simple but effective modification to a multiplicative congruential random-number generator
作者:
W.G.Chambers,
Z.D.Dai,
期刊:
IEE Proceedings E (Computers and Digital Techniques)
(IET Available online 1991)
卷期:
Volume 138,
issue 3
页码: 121-122
年代: 1991
DOI:10.1049/ip-e.1991.0016
出版商: IEE
数据来源: IET
摘要:
A popular form of random-number generator uses the recurrencesk= (ASk−1mod 2ewithAands0odd to produce a pseudo-random sequence of integers in the range 0 to 2e− 1. We give a simple modification which increases the guaranteed period by an enormous factor with only a small computational overhead. The recurrence is changed tosk= (Ask−1+ Sk−nmod 2ewherenis such thatxn+ x + 1 is a primitive binary polynomial. The period is increased from 2e−2to (2n−1)2e−1. The overhead is an extra addition and the inclusion of a circular buffer of lengthn.
点击下载:
PDF
(243KB)
返 回