Document Type : Original Research Paper
Author
Faculty of Computer and IT Engineering, Shahrood University of Technology, Shahrood, Iran.
Abstract
Background and Objectives: Random number generation is essential in simulation, cryptography, and statistical modeling. Classical PRNGs such as the Linear Congruential Generator and Mersenne Twister are efficient but exhibit predictability and correlation. Newer families like PCG and BRG improve statistical balance yet remain static after initialization, while chaotic and neural methods face reproducibility and stability issues. To overcome these limits, we propose the Adaptive Multi-Layer Random Generator (AMLRG), designed to deliver self-regulating pseudorandomness through adaptive feedback and hybrid entropy sources.
Methods: AMLRG combines three layers: (i) an index generator based on linear, logistic, or chaotic processes, (ii) a uniform distribution module, and (iii) an adaptive feedback system that tunes parameters in real time. Online diagnostics—Kolmogorov–Smirnov tests, autocorrelation analysis, and Shannon entropy—direct dynamic adjustment. Implemented in Python, the system produces binary streams and diagnostic plots. Evaluation involved ablation studies (removing feedback, switching, or stratification), comparison with LCG, PCG, BRG, and logistic-only baselines, and validation using Dieharder, TestU01, and NIST SP 800-22.
Results: AMLRG produced lower KS distances, near-zero autocorrelation, and entropy close to theoretical maxima, outperforming all baselines. Ablation confirmed the contribution of each layer to statistical quality. Results show stable behavior across 200,000 values, with speed comparable to PCG but greater adaptability.
Conclusion: AMLRG introduces dynamic correction that improves independence and uniformity in pseudorandom sequences. Its layered architecture suits engineering simulations, adaptive systems, and security-sensitive statistical preprocessing. Future work will target non-uniform distributions, GPU acceleration, and hardware implementation.
Keywords
- Entropy Correction
- Statistical Testing
- Kolmogorov–Smirnov Analysis
- Autocorrelation Metrics
- Throughput Optimization
Main Subjects
Open Access
This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit: http://creativecommons.org/licenses/by/4.0/
Publisher’s Note
JECEI Publisher remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Publisher
Shahid Rajaee Teacher Training University
Send comment about this article