How to Generate Random Numbers - A Guide to TRNGs and PRNGsby@aryamansharda
544 reads

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

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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

@aryamansharda

Aryaman Sharda

Senior iOS Engineer @ Turo


Receive Stories from @aryamansharda

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!