paint-brush
How to Generate Random Numbers - A Guide to TRNGs and PRNGsby@aryamansharda
551 reads
551 reads

How to Generate Random Numbers - A Guide to TRNGs and PRNGs

by Aryaman Sharda3mFebruary 1st, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Prenorandom number generators (PRNGs) are a category of algorithms that programmatically generate new random numbers from a given starting value called the seed. These algorithms are not without their own limitations. PRNGs are faster than TRNGs and are not periodic. They are extremely useful in situations involving modeling and simulations as it allows you to “replay” a series of random events by initializing your random number generator with the same seed. In situations where the randomness of the random numbers is critical, we use “true” random numbers.

Company Mentioned

Mention Thumbnail
featured image - How to Generate Random Numbers - A Guide to TRNGs and PRNGs
Aryaman Sharda HackerNoon profile picture
Aryaman Sharda

Aryaman Sharda

@aryamansharda

Senior iOS Engineer @ Turo

Learn More
LEARN MORE ABOUT @ARYAMANSHARDA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Aryaman Sharda HackerNoon profile picture
Aryaman Sharda@aryamansharda
Senior iOS Engineer @ Turo

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite