Implementing A Pseudorandom Number Generator In Python From Scratch
Learn to implement Linear Congruential Generator (LCG), a pseudorandom number generator in Python
Computers use deterministic algorithms to generate Pseudorandom numbers.
These algorithms called Pseudorandom number generators (PRNGs) take a seed value and return a Pseudo-random number.
Let’s talk about one of such popular algorithms.
Note that true randomness is usually generated by Hardware Random Number Generators (HRNGs)/ environmental noise/ quantum processes etc. These are not discussed in this article.
Keep reading with a 7-day free trial
Subscribe to Into AI to keep reading this post and get 7 days of free access to the full post archives.