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

Title:
Performance Analysis of Linear Congruential Random Generator Algorithms Using Python and Java Languages
Contributors:
Department of Computer Science and Engineering, Ghousia College Engineering, Ramanagara, India.
Source:
Journal of Advances in Mathematics and Computer Science. 40(2):40-52
Publisher Information:
CCSD; Journal of Advances in Mathematics and Computer Science, 2025.
Publication Year:
2025
Original Identifier:
HAL: hal-05048552
Document Type:
Zeitschrift article<br />Journal articles
Language:
English
ISSN:
2456-9968
Relation:
info:eu-repo/semantics/altIdentifier/doi/10.9734/jamcs/2025/v40i21968
DOI:
10.9734/jamcs/2025/v40i21968
Accession Number:
edshal.hal.05048552v1
Database:
HAL

Weitere Informationen

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.