An active engineer explains how to create pseudo-random numbers with Python's random module [for beginners]
Learn how to create pseudo-random numbers with Python's random module.
If you're not familiar with Python in the first place, read an article that explains what Python is and get a better understanding.
This article is based on the contents of the TechAcademy online boot camp Python course.
What is random
Pseudo-random numbers are sequences that look chaotic (but are actually generated by certain rules).The contrast is the "true random number".Some computers generate true random numbers based on thermal noise and external input / output.
Scientific calculations require a large number of random numbers, but true random numbers are often replaced by pseudo-random numbers due to their slow generation speed.