[Paper Review] A Search for Good Pseudo-random Number Generators : Survey and Empirical Studies
This paper evaluates 29 prominent pseudo-random number generators (PRNGs) across three categories—linear congruential generators (LCGs), linear feedback shift registers (LFSRs), and cellular automata (CAs)—using standardized statistical test suites (Diehard, TestU01, NIST) and visual tests (lattice and space-time diagrams). The SFMT-64 generator ranks first, while LFSR258 is the worst performer, revealing discrepancies between claimed and actual randomness quality.
This paper targets to search so-called \emph{good} generators by doing a brief survey over the generators developed in the history of pseudo-random number generators (PRNGs), verify their claims and rank them based on strong empirical tests in same platforms. To do this, the genre of PRNGs developed so far are explored and classified into three groups -- linear congruential generator based, linear feedback shift register based and cellular automata based. From each group, the well-known widely used generators which claimed themselves to be `\emph{good}' are chosen. Overall $30$ PRNGs are selected in this way on which two types of empirical testing are done -- blind statistical tests with Diehard battery of tests, battery \emph{rabbit} of TestU01 library and NIST statistical test-suite as well as graphical tests (lattice test and space-time diagram test). Finally, the selected PRNGs are divided into $24$ groups and are ranked according to their overall performance in all empirical tests.
Motivation & Objective
- To empirically validate the randomness quality of widely used PRNGs, challenging their self-reported superiority.
- To identify discrepancies between claimed performance and actual results in standardized statistical tests.
- To develop a comprehensive, application-agnostic ranking of PRNGs based on consistent testing across multiple platforms and seeds.
- To investigate the visual and structural patterns in PRNG outputs using lattice and space-time diagram tests to explain statistical test failures.
- To provide a reliable, evidence-based ranking for users to select PRNGs based on empirical performance rather than theoretical claims.
Proposed method
- Classified 29 well-known PRNGs into three technological categories: LCG-based, LFSR-based, and CA-based.
- Executed blind statistical testing using three major test suites: Diehard, TestU01, and NIST, with both fixed and random seeds.
- Conducted average-case analysis across 1,000 random seeds to assess robustness and consistency of PRNGs.
- Applied graphical tests: lattice test to detect correlation in 2D projections and space-time diagram test to visualize state evolution and patterns.
- Combined results from statistical and visual tests to produce a final, multi-dimensional ranking of PRNGs.
- Used a composite scoring system based on test performance to assign final ranks, with lower ranks indicating better performance.
Experimental results
Research questions
- RQ1Do well-known PRNGs actually perform as claimed in standard statistical test suites like Diehard, TestU01, and NIST?
- RQ2To what extent do visual patterns in lattice and space-time diagrams correlate with statistical test outcomes?
- RQ3Why do some PRNGs that pass most statistical tests still exhibit visible structures or dependencies in graphical representations?
- RQ4Can a unified ranking of PRNGs be established by combining results from multiple test suites and visual diagnostics?
- RQ5How does seed dependency or fixed-bit behavior affect the overall randomness quality of a PRNG?
Key findings
- The SFMT-64 generator achieved the best overall performance, ranking 1st in the final ranking across all empirical tests.
- LFSR258 was identified as the worst-performing generator, ranking 24th (last) in the final ranking, despite being widely used.
- Several PRNGs, including MT19937-64 and SFMT-64, showed strong independence from seed and consistent performance across all test suites.
- Visual tests revealed that PRNGs like rand() and lrand48() produced outputs with more 0s than 1s, indicating structural bias not fully captured by statistical tests.
- The lattice test exposed strong correlations in PRNGs such as MMIX and minstd_rand, especially when the least significant bits were fixed.
- Space-time diagrams revealed that PRNGs like XORShift1024* and Rule 30 CA showed early dependencies on seed and recurring patterns, explaining their lower statistical test scores.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.