skip to main content
research-article

Implementing 64-bit Maximally Equidistributed F2-Linear Generators with Mersenne Prime Period

Published:03 January 2018Publication History
Skip Abstract Section

Abstract

CPUs and operating systems are moving from 32 to 64 bits, and hence it is important to have good pseudorandom number generators designed to fully exploit these word lengths. However, existing 64-bit very long period generators based on linear recurrences modulo 2 are not completely optimized in terms of the equidistribution properties. Here, we develop 64-bit maximally equidistributed pseudorandom number generators that are optimal in this respect and have speeds equivalent to 64-bit Mersenne Twisters. We provide a table of specific parameters with period lengths from 2607-1 to 244497-1.

Skip Supplemental Material Section

Supplemental Material

References

  1. A. Compagner. 1991. The hierarchy of correlations in random binary sequences. Journal of Statistical Physics 63 (1991), 883--896. Issue 5.Google ScholarGoogle ScholarCross RefCross Ref
  2. R. Couture and P. L’Ecuyer. 2000. Lattice computations for random numbers. Mathematics of Computation 69, 230 (2000), 757--765. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. H. Haramoto, M. Matsumoto, T. Nishimura, F. Panneton, and P. L’Ecuyer. 2008. Efficient jump ahead for -linear random number generators. INFORMS Journal of Computing 20, 3 (2008), 385--390. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. S. Harase. 2009. Maximally equidistributed pseudorandom number generators via linear output transformations. Mathematics and Computers in Simulation 79, 5 (2009), 1512--1519. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. S. Harase. 2011. An efficient lattice reduction method for -linear pseudorandom number generators using Mulders and Storjohann algorithm. Journal of Computation and Applied Mathematics 236, 2 (2011), 141--149.Google ScholarGoogle ScholarCross RefCross Ref
  6. S. Harase, M. Matsumoto, and M. Saito. 2011. Fast lattice reduction for -linear pseudorandom number generators. Mathematics of Computation 80, 273 (2011), 395--407.Google ScholarGoogle ScholarCross RefCross Ref
  7. ISO. 2012. ISO/IEC 14882:2011 Information Technology — Programming Languages — C++. International Organization for Standardization, Geneva, Switzerland. 1338 (est.) pages.Google ScholarGoogle Scholar
  8. D. E. Knuth. 1997. The Art of Computer Programming, Volume 2 (3rd ed.): Seminumerical Algorithms. Addison-Wesley Longman Publishing Co., Inc., Boston, MA. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. P. L’Ecuyer. 1999. Tables of maximally equidistributed combined LFSR generators. Mathematics of Computation 68, 225 (1999), 261--269. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. P. L’Ecuyer and F. Panneton. 2009. -Linear Random Number Generators. In Advancing the Frontiers of Simulation: A Festschrift in Honor of George Samuel Fishman, C. Alexopoulos, D. Goldsman, and J. R. Wilson (Eds.). Springer-Verlag, New York, 169--193.Google ScholarGoogle Scholar
  11. P. L’Ecuyer and R. Simard. 2007. TestU01: A C library for empirical testing of random number generators. ACM Transactions on Mathematics Software 33, 4 (2007), Art. 22, 40. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. J. H. Lindholm. 1968. An analysis of the pseudo-randomness properties of subsequences of long -sequences. IEEE Transactions on Information Theory IT-14, 4 (1968), 569--576. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. M. Matsumoto and Y. Kurita. 1996. Strong deviations from randomness in -sequences based on trinomials. ACM Transactions on Modeling and Computer Simulation 6, 2 (Apr 1996), 99--106. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. M. Matsumoto and T. Nishimura. 1998. Mersenne twister: A -dimensionally equidistributed uniform pseudo-random number generator. ACM Transactions on Modeling and Computer Simulation 8, 1 (1998), 3--30. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. M. Matsumoto and T. Nishimura. 2002. A nonempirical test on the weight of pseudorandom number generators. In Monte Carlo and Quasi-Monte Carlo Methods 2000, K.-T. Fang, F. J. Hickernell, and H. Niederreiter (Eds.). Springer, Berlin, 381--395.Google ScholarGoogle Scholar
  16. M. Matsumoto, M. Saito, H. Haramoto, and T. Nishimura. 2006. Pseudorandom number generation: Impossibility and compromise. Journal of Universal Computer Science 12, 6 (2006), 672--690.Google ScholarGoogle Scholar
  17. M. Matsumoto, I. Wada, A. Kuramoto, and H. Ashihara. 2007. Common defects in initialization of pseudorandom number generators. ACM Transactions on Modeling and Computer Simulation 17, 4, Article 15 (Sep 2007). Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. H. Niederreiter. 1992. Random Number Generation and Quasi-Monte Carlo Methods. SIAM CBMS-NSF Reginal Conference Series in Applied Mathematics, vol. 63. SIAM, Philadelphia. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. T. Nishimura. 2000. Tables of 64-bit Mersenne twister. ACM Transactions on Modeling and Computer Simulation 10, 4 (2000), 348--357. Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. F. Panneton, P. L’Ecuyer, and M. Matsumoto. 2006. Improved long-period generators based on linear recurrences modulo 2. ACM Transactions on Mathematical Software 32, 1 (2006), 1--16. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. M. Saito and M. Matsumoto. 2008. SIMD-oriented fast Mersenne twister: A 128-bit pseudorandom number generator. In Monte Carlo and Quasi-Monte Carlo Methods 2006, A. Keller, S. Heinrich, and H. Niederreiter (Eds.). Springer-Verlag, Berlin, 607--622.Google ScholarGoogle Scholar
  22. M. Saito and M. Matsumoto. 2009. A PRNG specialized in double precision floating point numbers using an affine transition. In Monte Carlo and Quasi-Monte Carlo Methods 2008, P. L’Ecuyer and A. B. Owen (Eds.). Springer, Berlin, 589--602.Google ScholarGoogle Scholar
  23. M. Saito and M. Matsumoto. 2013. Variants of Mersenne twister suitable for graphic processors. ACM Transactions on Mathematical Software 39, 2 (2013), Art. 12, 20. Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. J. P. R. Tootill, W. D. Robinson, and D. J. Eagle. 1973. An asymptotically random Tausworthe sequence. Journal of the ACM 20, 3 (1973), 469--481. Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. D. K. Wang and A. Compagner. 1993. On the use of reducible polynomials as random number generators. Mathematics of Computation 60, 201 (1993), 363--374. 0025-5718Google ScholarGoogle ScholarCross RefCross Ref

Index Terms

  1. Implementing 64-bit Maximally Equidistributed F2-Linear Generators with Mersenne Prime Period

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in

      Full Access

      • Published in

        cover image ACM Transactions on Mathematical Software
        ACM Transactions on Mathematical Software  Volume 44, Issue 3
        September 2018
        291 pages
        ISSN:0098-3500
        EISSN:1557-7295
        DOI:10.1145/3175005
        Issue’s Table of Contents

        Copyright © 2018 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 3 January 2018
        • Accepted: 1 November 2017
        • Revised: 1 March 2017
        • Received: 1 May 2015
        Published in toms Volume 44, Issue 3

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • research-article
        • Research
        • Refereed

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader