带进位减法(Subtract-with-carry)是一种时滞斐波那契伪随机数生成器 ,1991年由George Marsaglia与Arif Zaman发明。[1]
算法
带进位减法的算法需用递推关系表示:
其中 .
常量S与R分别称作短时滞与长时滞。[2]S与R满足条件。 因此,表达式与对应于序列中之前的第S项与第R项。取模操作M的值为,其中W是状态序列的字(word)的位长度,。
带进位的减法与add-with-carry、subtract-with-borrow为同一族随机数生产引擎。[1]
参考文献
Wikiwand in your browser!
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.