{"document":{"doc_id":30825,"source":"fed_paper","org":"FRB Atlanta","doc_type":"FRB Atlanta Working Paper","title":"Portable random number generators","date":"1999","url":"https://www.fedinprint.org/item/fedawp/13891/original","source_native_id":"fedawp:13891","status":"fetched","abstract":"Computers are deterministic devices, and a computer-generated random number is a contradiction in terms. As a result, computer-generated pseudorandom numbers are fraught with peril for the unwary. We summarize much that is known about the most well-known pseudorandom number generators: congruential generators. We also provide machine-independent programs to implement the generators in any language that has 32-bit signed integers-for example C, C++, and FORTRAN. Based on an extensive search, we provide parameter values better than those previously available.","action":null},"dockets":[],"rins":[],"related":[],"references":[{"citation_id":409389,"raw_reference":"Press et al. (1992, pp. 274-85)","cited_authors":"Press, William H., Saul A. Teukolsky, William T. Vetterling and Brian P. Flannery","cited_year":"1992","cited_title":"Numerical Recipes in C","cited_venue":"Cambridge University Press","cited_doi":null,"cited_url":null,"ref_kind":"book","section":"Introduction","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":409390,"raw_reference":"Knuth, Donald E. The Art of Computer Programming. Volume 2, Seminumerical Algorithms. Third edition. Reading, Massachusetts: Addison-Wesley Publishing Company, 1998.","cited_authors":"Knuth, Donald E.","cited_year":"1998","cited_title":"The Art of Computer Programming, Volume 2, Seminumerical Algorithms","cited_venue":"Addison-Wesley Publishing Company","cited_doi":null,"cited_url":null,"ref_kind":"book","section":"II. Choosing Among Generators","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":409391,"raw_reference":"James (1990)","cited_authors":"James, F.","cited_year":"1990","cited_title":null,"cited_venue":null,"cited_doi":null,"cited_url":null,"ref_kind":"other","section":"II. Choosing Among Generators","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":409392,"raw_reference":"Niederreiter (1992)","cited_authors":"Niederreiter, Harald","cited_year":"1992","cited_title":"Random Number Generation and Quasi-Monte Carlo Methods","cited_venue":"CBMS-NSF Regional Conference Papers in Applied Mathematics, volume 63. Philadelphia: Society for Industrial and Applied Mathematics","cited_doi":null,"cited_url":null,"ref_kind":"book","section":"II. Choosing Among Generators","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":409393,"raw_reference":"Marsaglia and Zaman (1991)","cited_authors":"Marsaglia, George; Zaman, Arif","cited_year":"1991","cited_title":"A New Class of Random Number Generators","cited_venue":"Annals of Applied Probability 1 (3)","cited_doi":"10.1214/aoap/1177005878","cited_url":null,"ref_kind":"journal_article","section":"II. Choosing Among Generators","page":null,"context_sentence":null,"paper_id":46235,"paper_title":"A New Class of Random Number Generators","paper_year":1991,"paper_doi":"10.1214/aoap/1177005878"},{"citation_id":409394,"raw_reference":"L'Ecuyer 1997","cited_authors":"L'Ecuyer, Pierre","cited_year":"1997","cited_title":"Bad Lattice Structures for Vectors of Non-Successive Values Produced by Some Linear Recurrences","cited_venue":"INFORMS Journal on Computing 9","cited_doi":null,"cited_url":null,"ref_kind":"journal_article","section":"II. Choosing Among Generators","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":409395,"raw_reference":"L'Ecuyer and Tezuka (1991)","cited_authors":"L'Ecuyer, Pierre; Tezuka, Shu","cited_year":"1991","cited_title":null,"cited_venue":null,"cited_doi":null,"cited_url":null,"ref_kind":"journal_article","section":"II. Choosing Among Generators","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":409396,"raw_reference":"Kim et al., 1996","cited_authors":"Kim, Sangjoom; Shephard, Neil; Chib, Siddhartha","cited_year":"1996","cited_title":"Stochastic Volatility: Likelihood Inference and Comparison with ARCH Models","cited_venue":"Unpublished paper, Washington University","cited_doi":null,"cited_url":null,"ref_kind":"working_paper","section":"III. Properties of Full Cycles","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":409397,"raw_reference":"L'Ecuyer 1988, p. 744","cited_authors":"L'Ecuyer, Pierre","cited_year":"1988","cited_title":"Efficient and Portable Combined Random Number Generators","cited_venue":"Communications of the ACM 31","cited_doi":null,"cited_url":null,"ref_kind":"journal_article","section":"III. Properties of Full Cycles","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":409398,"raw_reference":"Fishman and Moore (1992)","cited_authors":"Fishman, George S.; Moore, Louis R.","cited_year":"1992","cited_title":null,"cited_venue":null,"cited_doi":null,"cited_url":null,"ref_kind":"journal_article","section":"IV. Spectral Test Results","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":409399,"raw_reference":"Dwyer (1996)","cited_authors":"Dwyer","cited_year":"1996","cited_title":null,"cited_venue":null,"cited_doi":null,"cited_url":null,"ref_kind":"journal_article","section":"IV. Spectral Test Results","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":409400,"raw_reference":"Boyar, Joan. “Inferring Sequences Produced by Pseudo-Random Number Generators.” Journal of the Association for Computing Machinery 36 (January 1989): 129-41.","cited_authors":"Boyar, Joan","cited_year":"1989","cited_title":"Inferring Sequences Produced by Pseudo-Random Number Generators","cited_venue":"Journal of the Association for Computing Machinery 36","cited_doi":"10.1145/58562.59305","cited_url":null,"ref_kind":"journal_article","section":"VI. Conclusion","page":null,"context_sentence":null,"paper_id":46236,"paper_title":"Inferring sequences produced by pseudo-random number generators","paper_year":1989,"paper_doi":"10.1145/58562.59305"},{"citation_id":409401,"raw_reference":"Krawczyk, Hugo. “How to Predict Congruential Generators.” Journal of Algorithms 13 (1992): 527-45.","cited_authors":"Krawczyk, Hugo","cited_year":"1992","cited_title":"How to Predict Congruential Generators","cited_venue":"Journal of Algorithms 13","cited_doi":null,"cited_url":null,"ref_kind":"journal_article","section":"VI. Conclusion","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":409402,"raw_reference":"McCullough, Bruce. “Econometric Software Reliability: EViews, LIMDEP, SHAZAM and TSP.” Journal of Applied Econometrics, 1999, forthcoming.","cited_authors":"McCullough, Bruce","cited_year":"1999","cited_title":"Econometric Software Reliability: EViews, LIMDEP, SHAZAM and TSP","cited_venue":"Journal of Applied Econometrics","cited_doi":"10.1002/(sici)1099-1255(199903/04)14:2<191::aid-jae524>3.0.co;2-k","cited_url":null,"ref_kind":"journal_article","section":"VI. Conclusion","page":null,"context_sentence":null,"paper_id":46237,"paper_title":"Econometric software reliability: EViews, LIMDEP, SHAZAM and TSP","paper_year":1999,"paper_doi":"10.1002/(sici)1099-1255(199903/04)14:2<191::aid-jae524>3.0.co;2-k"},{"citation_id":409403,"raw_reference":"Ferrenberg, Alan M., and D. P. Landau. “Monte Carlo Simulations: Hidden Errors from 'Good' Random Number Generators.” Physical Review Letters 69 (December 7, 1992), pp. 3382-84.","cited_authors":"Ferrenberg, Alan M.; Landau, D. P.","cited_year":"1992","cited_title":"Monte Carlo Simulations: Hidden Errors from 'Good' Random Number Generators","cited_venue":"Physical Review Letters 69","cited_doi":null,"cited_url":null,"ref_kind":"journal_article","section":"III. Criteria for Choosing Among Generators","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":409404,"raw_reference":"Schmid and Wilding 1995","cited_authors":"Schmid, F.; Wilding, N. B.","cited_year":"1995","cited_title":"Errors in Monte Carlo Simulations Using Shift Register Random Number Generators","cited_venue":"International Journal of Modern Physics C 6","cited_doi":"10.1142/s0129183195000642","cited_url":null,"ref_kind":"journal_article","section":"III. Criteria for Choosing Among Generators","page":null,"context_sentence":null,"paper_id":46238,"paper_title":"ERRORS IN MONTE CARLO SIMULATIONS USING SHIFT REGISTER RANDOM NUMBER GENERATORS","paper_year":1996,"paper_doi":"10.1142/s0129183195000642"},{"citation_id":409405,"raw_reference":"Schrage 1979","cited_authors":"Schrage, Linus","cited_year":"1979","cited_title":"A More Portable Fortran Random Number Generator","cited_venue":"ACM Transactions on Mathematical Software 5","cited_doi":"10.1145/355826.355828","cited_url":null,"ref_kind":"journal_article","section":"III. Criteria for Choosing Among Generators","page":null,"context_sentence":null,"paper_id":46239,"paper_title":"A More Portable Fortran Random Number Generator","paper_year":1979,"paper_doi":"10.1145/355826.355828"},{"citation_id":409406,"raw_reference":"Cassels 1971","cited_authors":"Cassels, J. W. S.","cited_year":"1971","cited_title":"An Introduction to the Geometry of Numbers","cited_venue":"Berlin: Springer-Verlag","cited_doi":null,"cited_url":null,"ref_kind":"book","section":"III. The Spectral Test","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":409407,"raw_reference":"Stuart and Ord 1987","cited_authors":"Stuart, Alan; Ord, J. Keith","cited_year":"1991","cited_title":"Kendall's Advanced Theory of Statistics","cited_venue":"New York: Oxford University Press","cited_doi":null,"cited_url":null,"ref_kind":"book","section":"IV. Tests for Consistency with Independent Uniform Numbers in One Dimension","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":409408,"raw_reference":"Hörmann and Derflinger's (1993)","cited_authors":"Hörmann, W.; Derflinger, G.","cited_year":"1993","cited_title":"A Portable Random Number Generator Well Suited for the Rejection Method","cited_venue":"ACM Transactions on Mathematical Software 19","cited_doi":null,"cited_url":null,"ref_kind":"journal_article","section":"VI. Conclusion","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":409409,"raw_reference":"Fishman and Moore 1986, p. 43","cited_authors":"Fishman, George S.; Moore, Louis R.","cited_year":"1986","cited_title":"An Exhaustive Analysis of Multiplicative Congruential Random Number Generators with Modulus 2^31-1","cited_venue":"SIAM Journal on Scientific and Statistical Computing 7","cited_doi":"10.1137/0907002","cited_url":null,"ref_kind":"journal_article","section":"Appendix","page":null,"context_sentence":null,"paper_id":46241,"paper_title":"An Exhaustive Analysis of Multiplicative Congruential Random Number Generators with Modulus $2^{31} - 1$","paper_year":1986,"paper_doi":"10.1137/0907002"},{"citation_id":409410,"raw_reference":"Gibbons, Jean Dickenson, and Subhabrata Chakraborti. Nonparametric Statistical Inference. Third Edition, Revised and Expanded. New York: Marcel Dekker, Inc., 1992.","cited_authors":"Gibbons, Jean Dickenson; Chakraborti, Subhabrata","cited_year":"1992","cited_title":"Nonparametric Statistical Inference","cited_venue":"Marcel Dekker, Inc.","cited_doi":null,"cited_url":null,"ref_kind":"book","section":"IV. Runs Test","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":409411,"raw_reference":"Giblin, Peter. Primes and Programming: An Introduction to Number Theory with Computing. Cambridge: Cambridge University Press, 1993.","cited_authors":"Giblin, Peter","cited_year":"1993","cited_title":"Primes and Programming: An Introduction to Number Theory with Computing","cited_venue":"Cambridge University Press","cited_doi":"10.5860/choice.32-0987","cited_url":null,"ref_kind":"book","section":"II. Choosing Among Generators","page":null,"context_sentence":null,"paper_id":46240,"paper_title":"Primes and programming: an introduction to number theory with computing","paper_year":1994,"paper_doi":"10.5860/choice.32-0987"},{"citation_id":409412,"raw_reference":"Fishman, George S. Monte Carlo. New York: Springer, 1996.","cited_authors":"Fishman, George S.","cited_year":"1996","cited_title":"Monte Carlo","cited_venue":"Springer","cited_doi":"10.1007/978-1-4757-2553-7","cited_url":null,"ref_kind":"book","section":"III. Properties of Full Cycles","page":null,"context_sentence":null,"paper_id":46242,"paper_title":"Monte Carlo","paper_year":1996,"paper_doi":"10.1007/978-1-4757-2553-7"}]}