EconPapers    
Economics at your fingertips  
 

Scrambling additive lagged-Fibonacci generators

Aldossari Haifa () and Mascagni Michael ()
Additional contact information
Aldossari Haifa: Department of Computer Science, Florida State University, Tallahassee, FL 32306-4530, USA; and Faculty of College of Computer and Information Sciences, Princess Nourah bint Abdulrahman University, Saudi Arabia, Riyadh, PO Box 84428
Mascagni Michael: Department of Computer Science, Florida State University, Tallahassee, FL 32306-4530, USA; and National Institute of Standards & Technology, ITL, Gaithersburg, MD 20899-8910, USA

Monte Carlo Methods and Applications, 2022, vol. 28, issue 3, 199-210

Abstract: Random numbers are used in a variety of applications including simulation, sampling, and cryptography. Fortunately, there exist many well-established methods of random number generation. An example of a well-known pseudorandom number generator is the lagged-Fibonacci generator (LFG). Marsaglia showed that the lagged-Fibonacci generator using addition failed some of his DIEHARD statistical tests, while it passed all when longer lags were used. This paper presents a scrambler that takes bits from a pseudorandom number generator and outputs (hopefully) improved pseudorandom numbers. The scrambler is based on a modified Feistel function, a method used in the generation of cryptographic random numbers, and multiplication by a chosen multiplier. We show that this scrambler improves the quality of pseudorandom numbers by applying it to the additive LFG with small lags. The scrambler performs well based on its performance with the TestU01 suite of randomness tests. The TestU01 suite of randomness tests is more comprehensive than the DIEHARD tests. In fact, the specific suite of tests we used from TestU01 includes the DIEHARD tests The scrambling of the LFG is so successful that scrambled LFGs with small lags perform as well as unscrambled LFGs with long lags. This comes at the cost of a doubling of execution time, and provides users with generators with small memory footprints that can provide parallel generators like the LFGs in the SPRNG parallel random number generation package.

Keywords: Pseudorandom numbers; lagged-Fibonacci generator; scrambling (search for similar items in EconPapers)
Date: 2022
References: Add references at CitEc
Citations:

Downloads: (external link)
https://doi.org/10.1515/mcma-2022-2115 (text/html)
For access to full text, subscription to the journal or payment for the individual article is required.

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:bpj:mcmeap:v:28:y:2022:i:3:p:199-210:n:6

Ordering information: This journal article can be ordered from
https://www.degruyter.com/journal/key/mcma/html

DOI: 10.1515/mcma-2022-2115

Access Statistics for this article

Monte Carlo Methods and Applications is currently edited by Karl K. Sabelfeld

More articles in Monte Carlo Methods and Applications from De Gruyter
Bibliographic data for series maintained by Peter Golla ().

 
Page updated 2025-03-19
Handle: RePEc:bpj:mcmeap:v:28:y:2022:i:3:p:199-210:n:6