There are two different ways of generating random numbers using a computer system, Pseudo-Random Number Generators (PRNGs) and True Random Number Generators (TRNGs). Giving Consideration to the era of Generic AI and the Internet of Things where high bandwidth, connectivity, servers, storage and decisions play an important role. Hence speed and security are obvious needs. 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. A Linear congruential Generator (LCG) algorithm is selected which is one of the popular PRNG. In this study, the performance of Linear Congruential Generator (LCG) pseudo-random number generators (PRNGs) implemented in Python and Java is analyzed using three seeding techniques: manual, system time, and hash/object-based. The 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 also 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. In conclusion, it has been found that LCG seeded with system time has performed better than the other two versions. The role of programming languages both Java and Python for generation has no such impact. The study has also shown the speed of generation of LCG PRNGs is 10 times more than that of Python’s execution time.
Author
(s) Details
Omar
Khan Durrani
Department of Computer Science and Engineering, Ghousia College
Engineering, Ramanagara, India.
Mohammed
Saif Ali
Department of Computer Science and Engineering, Ghousia College
Engineering, Ramanagara, India.
Davalmalik
Sayadali Makandar
Department of Computer Science and Engineering, Ghousia College
Engineering, Ramanagara, India.
Hemalatha
T P
Department of Computer Science and Engineering, Ghousia College
Engineering, Ramanagara, India.
Gulfishar
Bano
Department of Computer Science and Engineering, Ghousia College
Engineering, Ramanagara, India.
Dilshad
Begum
Department of Computer Science and Engineering, Ghousia College
Engineering, Ramanagara, India.
Please see the book here:- https://doi.org/10.9734/bpi/mcsru/v4/4910
No comments:
Post a Comment