How Does a Random Number Generator Work and What is its Usage?

AI Thread Summary
A random number generator (RNG) can be classified as either "true" or "pseudo." True random number generators (TRNGs) derive randomness from physical processes, such as radioactive decay or thermal noise, while pseudo random number generators (PRNGs) use mathematical algorithms to produce sequences that appear random. PRNGs require an initial value, known as a seed, which influences the output sequence. Cryptographically secure random number generators (CSPRNGs) are a type of PRNG designed to be secure against adversaries, ensuring their output is indistinguishable from true randomness. Understanding these distinctions is crucial for applications in fields like cryptography, gaming, and statistical sampling.
shahrzad1994
Messages
4
Reaction score
0
How does a random number generator work ?
What is the usage of it ?
 
Mathematics news on Phys.org
phion said:
I don't want to use it right now,I need to know how does it work ? Is there different ways to arrive a number o there is only one way ? And where can we use random number generator ?
 
shahrzad1994 said:
I don't want to use it right now,I need to know how does it work ? Is there different ways to arrive a number o there is only one way ? And where can we use random number generator ?

A "true" random number generator (RNG or TRNG) works by measuring something physical which is theorized to behave randomly (such as radioactive decay) or something which is so complicated that it is sure to behave randomly (such as thermal noise). Any number of sources or measuring techniques can be used. Post-processing can be used to improve the quality of poor sources.

A "pseudo" random number generator (PRNG) works by having a computer perform a series of arithmetic or logical computation that results in what appears, at first glance, to be just a list of jumbled up numbers. This can be something as simple as a multiplicative-congruential generator, a linear feedback shift register or something more complicated. Typically a PRNG will have a "seed" -- an initial value that determines how the stream will start and an internal state that evolves as each pseudo-random number is emitted. The size of the internal state constrains how long it will take before the output stream begins to repeat itself.

A cryptographically secure random number generator (CSPRNG) is a pseudo random number generator which is good enough that an opponent with bounded computer power is unable to distinguish its output from a truly random stream. There are a variety of approaches that can be used. Multiplicative congruential and linear feedback shift registers are too easy to crack and are not cryptographically secure.
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Back
Top