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

Written by aryamansharda | Published 2021/02/01
Tech Story Tags: random-number-generators | programming | algorithms | math-education | computers | basics | random | computer-science

TLDR 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.via the TL;DR App

no story

Written by aryamansharda | Senior iOS Engineer @ Turo
Published by HackerNoon on 2021/02/01