Applied Sciences· 2026Q2
Çağdaş Programlama Dillerinde Yerleşik Sahte Rastgele Sayı Üreteçleri Tarafından Üretilen Sayı Dizilerinin İstatistiksel Kalitesi
Statistical Quality of Number Sequences Produced by Pseudorandom Number Generators Built into Contemporary Programming Languages
- 0atıf
- Q2SCImago
- 2026yıl
Kısa özet
17 popüler programlama dilinden 143 sahte rastgele sayı üretecinin (PRNG) 15 NIST rastgelelik istatistik testini başarıyla geçtiği belirlendi; bunlardan 66'sı hiçbir sınırdaki sonuç göstermedi.
Yapay zekâ ile başlık ve abstract'tan üretildi; tam metin okunmaz.
Ana noktalar
- 17 programlama dilinden 143 PRNG'den 113'ü, rastgelelik için 15 NIST istatistik testinin tamamını geçti.
- 66 PRNG, sınırdaki sonuç olmaksızın tüm testleri geçti.
- GNU Scientific Library'deki eski üreteçler ve Delphi'nin yerleşik üreteçleri testlerin çoğunda başarısız oldu.
- C ve C++'ın standart rand() fonksiyonu, Ayrık Fourier Dönüşümü testinde tutarlı bir şekilde başarısız oldu.
Yapay zekâ ile başlık ve abstract'tan üretildi; tam metin okunmaz.
Özet (abstract)
The article presents the statistical quality of number sequences produced by pseudorandom number generators (PRNGs) built into or available in libraries of contemporary programming languages. Since PRNGs are foundational to many sciences, including cryptography, statistics, and simulation methods, high-quality PRNGs are crucial for reliable results. The study evaluated 143 pseudorandom generators from 17 popular programming languages. A widely recognized suite of 15 statistical tests developed by the National Institute of Standards and Technology (NIST), was used to assess randomness, and the research’s high accuracy was ensured by generating 1000 sequences for each generator, each one million bits long. The tests were performed for two variants: one with a fixed seed equal to 1 and one with a randomly selected seed. Thanks to these studies, the user can become aware of the limitations of the tools used and, if necessary, replace a weak generator with a better one. The results show that 113 of the 143 generators did not fail any test in either scenario, and 66 of them passed all tests without a single borderline result. However, four legacy linear congruential generators available in the GNU Scientific Library and both generators built into Delphi failed most of the tests, while the standard rand() function of C and C++ consistently failed the Discrete Fourier Transform test. Most borderline results were observed for the Non-overlapping Template Matching test.
Yazarların özeti; kaynağından alınmıştır. Applied Sciences, 2026 · DOI ↗
Ücretsiz hesapla devam et
Makaleye Sor ile bu makaleye günde 3 soru ücretsiz; makaleyi kaydet, kaynakçasını al, ilgi alanına göre her gün yeni özetler. Çıkarımlar Premium.
Web'de ücretsiz devam etGoogle ya da Apple hesabınla giriş; kart istemez. Bu makaleye geri dönersin.
Telefonda:
Alan: Sayısal Analiz
Numerical AnalysisMathematics