【24h】

GFSR pseudorandom number generation using APL

机译:使用APL生成GFSR伪随机数

获取原文
获取原文并翻译 | 示例

摘要

This paper demonstrates the effectiveness of APL for implementing the generalized feedback shift register (GFSR) approach to producing a random number stream. Various approaches to generating streams of pseudorandom numbers computationally have been devised, dating at least as far back as Norbert Wiener. These are normally discussed in the context of a course in modeling and simulation, since there may be practical implications to consider when building simulation models in APL or any other high level language. This is particularly the case for those circumstances when a (pseudo) random number sequence needs to be repeated, or when multiple streams are needed. In such cases a pseudorandom number generator other than that supplied in the programming language command set needs to be implemented. The linear congruential method for pseudorandom number generation is still commonly used, and is easily implemented in APL or any other high level language; however, it is known to have undesirable n-space uniformity characteristics. Moreover, the period length of its random number stream is limited by the underlying machine's word size. This is a serious issue, since at present day computer speeds, a simulation run could exhaust such a random number stream in a few hours. Very long period (VLP) pseudorandom number generators remedy this deficiency.One class of these, generalized feedback shift register (GFSR) pseudorandom number generators, is based on algebraic manipulation of irreducible trinomials of high order. The manner in which this is accomplished particularly lends itself to elegant APL implementation.
机译:本文演示了APL在实施通用反馈移位寄存器(GFSR)方法以产生随机数流方面的有效性。已经设计了各种计算上生成伪随机数流的方法,至少可以追溯到诺伯特·维纳。这些通常在建模和仿真课程中进行讨论,因为在以APL或任何其他高级语言构建仿真模型时可能要考虑实际的含义。对于那些需要重复(伪)随机数序列或需要多个流的情况尤其如此。在这种情况下,需要实现伪随机数发生器,而不是编程语言命令集中提供的伪随机数发生器。用于伪随机数生成的线性同余方法仍然很常用,并且很容易在APL或任何其他高级语言中实现;然而,已知具有不期望的n空间均匀性特征。此外,其随机数流的周期长度受基础机器字大小的限制。这是一个严重的问题,因为以目前的计算机速度,模拟运行可能会在几个小时内耗尽这种随机数流。超长周期(VLP)伪随机数生成器可弥补这一缺陷。其中一类通用反馈移位寄存器(GFSR)伪随机数生成器基于高阶不可约三项的代数运算。完成此操作的方式特别适合优雅的APL实现。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号