Fast splittable pseudorandom number generators

Author:

Steele Guy L.1,Lea Doug2,Flood Christine H.3

Affiliation:

1. Oracle Labs, Burlington, MA, USA

2. State University of New York - Oswego, Oswego, NY, USA

3. Red Hat Inc, Westford, MA, USA

Abstract

We describe a new algorithm SplitMix for an object-oriented and splittable pseudorandom number generator (PRNG) that is quite fast: 9 64-bit arithmetic/logical operations per 64 bits generated. A conventional linear PRNG object provides a generate method that returns one pseudorandom value and updates the state of the PRNG, but a splittable PRNG object also has a second operation, split , that replaces the original PRNG object with two (seemingly) independent PRNG objects, by creating and returning a new such object and updating the state of the original object. Splittable PRNG objects make it easy to organize the use of pseudorandom numbers in multithreaded programs structured using fork-join parallelism. No locking or synchronization is required (other than the usual memory fence immediately after object creation). Because the generate method has no loops or conditionals, it is suitable for SIMD or GPU implementation. We derive SplitMix from the DotMix algorithm of Leiserson, Schardl, and Sukha by making a series of program transformations and engineering improvements. The end result is an object-oriented version of the purely functional API used in the Haskell library for over a decade, but SplitMix is faster and produces pseudorandom sequences of higher quality; it is also far superior in quality and speed to java.util.Random, and has been included in Java JDK8 as the class java.util.SplittableRandom. We have tested the pseudorandom sequences produced by SplitMix using two standard statistical test suites (DieHarder and TestU01) and they appear to be adequate for "everyday" use, such as in Monte Carlo algorithms and randomized data structures where speed is important.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference35 articles.

1. Austin Appleby. Murmurhash3 April 3 2011. Project wiki entry. http://code.google.com/p/smhasher/wiki/MurmurHash3 Accessed Sept. 10 2013. Austin Appleby. Murmurhash3 April 3 2011. Project wiki entry. http://code.google.com/p/smhasher/wiki/MurmurHash3 Accessed Sept. 10 2013.

2. Note on Marsaglia's Xorshift random number generators;Brent Richard P.;Journal of Statistical Software,2004

Cited by 12 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Integrated Reproducibility with Self-describing Machine Learning Models;Proceedings of the 2023 ACM Conference on Reproducibility and Replicability;2023-06-27

2. Modeling Particle Randomness: A Pseudorandom Number Generator;Proceedings of the 2023 ACM Southeast Conference;2023-04-12

3. Scrambling additive lagged-Fibonacci generators;Monte Carlo Methods and Applications;2022-08-04

4. Fast and Simple Compact Hashing via Bucketing;Algorithmica;2022-06-29

5. ORSCA-GPU: one round stream cipher algorithm for GPU implementation;The Journal of Supercomputing;2022-02-16

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3