Scrambled Multiply-with-Carry Pseudorandom Number Generators
Sebastiano Vigna
Key points
From the paper's conclusion- Multiply-with-carry (MWC) generators are very fast pseudorandom number generators whose quality depends on the choice of a multiplier, and is usually assessed by applying the spectral test to an associated multiplicative congruential generator.
Abstract
Multiply-with-carry (MWC) generators are very fast pseudorandom number generators whose quality depends on the choice of a multiplier, and is usually assessed by applying the spectral test to an associated multiplicative congruential generator. We show that the special form of the modulus imposes structural limitations on the lattice structure of every MWC generator, which the generalized MWC generators of Goresky and Klapper mitigate; in our tests, xoring each output with its carry removes them. Since these limitations make the usual worst-case criterion useless, we rank candidates by a weighted geometric mean of their figures of merit, which does not depend on their normalization, and suggest multipliers for generators with 64 to 256 bits of state. Along the way, we correct some errors in the literature. In the end, we propose MWC192X, a 64-bit generator with 192 bits of state that passes all tests we are aware of, and emits an output in half a nanosecond.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Statistical Quality of Number Sequences Produced by Pseudorandom Number Generators Built into Contemporary Programming LanguagesApplied Sciences · 2026
- Small-LCM Distinct Covering Systems via Segmented Local SearcharXiv · 2026
- An Empirical Square-Root Law for the Degree Discrepancy of Binary m-SequencesarXiv · 2026
- Equal Hamming Weights at Fixed Root Order and Applications to Constacyclic MDS CodesarXiv · 2026
- Hybrid Chaos via Entropy-Greedy Map Switching: A Statistical and Predictability Analysis.Entropy (Basel, Switzerland) · 2026
- Bounded Knapsack in Truly Subquadratic TimearXiv · 2026