Performance Analysis of Linear Congruential Random Generator Algorithms Using Python and Java Languages

Giving Consideration to the era of Generic AI and Internet of things where high band width, connectivity, servers, storage and decisions play a important role. Hence speed and security is a obvious need. As pseudo-random number generation (PRNG)is also a basic need when security, probability, heuristics and many other issues are of concern. For this purpose and by considering the recent research outcomes with respect to programming languages like java and Python. We selected Linear congruential Generator (LCG) algorithm which is one of the popular PRNG. In this study, we analyze the performance of Linear Congruential Generator (LCG) pseudo-random number generators (PRNGs) implemented in Python and Java using three seeding techniques: manual, system time, and hash/object based. Our results show that system-time seeding offers the best trade-off between speed and randomness, with Java outperforming Python in execution times. The results noticed have proved the strengths and weaknesses of Java and Python. These findings provide practical guidance for developers in selecting appropriate PRNG implementations for applications in IoT, AI, and statistical modeling.

Authors

Institutions

Publication Details

Journal
Journal of Advances in Mathematics and Computer Science
Published
2025-02-06
DOI
https://doi.org/10.9734/jamcs/2025/v40i21968
Primary Topic
Computational Physics and Python Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Performance Analysis of Linear Congruential Random Generator Algorithms Using Python and Java Languages

Omar Khan Durrani, Mohammed Y. Ali, T. Hemalatha, Davalmalik sayadali Makandar et al.
Journal of Advances in Mathematics and Computer Science
Computational Physics and Python Applications
article

Performance Analysis of Linear Congruential Random Generator Algorithms Using Python and Java Languages

Omar Khan Durrani, Mohammed Y. Ali, T. Hemalatha, Davalmalik sayadali Makandar, Gulfishar Bano, Dilshad Begum
article en

Abstract

Giving Consideration to the era of Generic AI and Internet of things where high band width, connectivity, servers, storage and decisions play a important role. Hence speed and security is a obvious need. As pseudo-random number generation (PRNG)is also a basic need when security, probability, heuristics and many other issues are of concern. For this purpose and by considering the recent research outcomes with respect to programming languages like java and Python. We selected Linear congruential Generator (LCG) algorithm which is one of the popular PRNG. In this study, we analyze the performance of Linear Congruential Generator (LCG) pseudo-random number generators (PRNGs) implemented in Python and Java using three seeding techniques: manual, system time, and hash/object based. Our results show that system-time seeding offers the best trade-off between speed and randomness, with Java outperforming Python in execution times. The results noticed have proved the strengths and weaknesses of Java and Python. These findings provide practical guidance for developers in selecting appropriate PRNG implementations for applications in IoT, AI, and statistical modeling.

Journal of Advances in Mathematics and Computer ScienceVol. 40(2)
Rama University (IN)
Openalex Percentile: Top 99%
Computational Physics and Python Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Performance Analysis of Linear Congruential Random Generator Algorithms Using Python and Java Languages — Omar Khan Durrani, Mohammed Y. Ali, et al. · Journal of Advances in Mathematics and Computer Science (2025) | TGRS Research Map | TGRS