Random number generator


by shahrzad1994
Tags: generator, number, random
shahrzad1994
shahrzad1994 is offline
#1
Jan2-14, 04:43 AM
shahrzad1994's Avatar
P: 4
How does a random number generator work ?
What is the usage of it ?
Phys.Org News Partner Mathematics news on Phys.org
Researchers help Boston Marathon organizers plan for 2014 race
'Math detective' analyzes odds for suspicious lottery wins
Pseudo-mathematics and financial charlatanism
phion
phion is offline
#2
Jan2-14, 04:56 AM
PF Gold
phion's Avatar
P: 47
I use this:

http://www.random.org/
shahrzad1994
shahrzad1994 is offline
#3
Jan2-14, 05:06 AM
shahrzad1994's Avatar
P: 4
Quote Quote by phion View Post

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 ?

jbriggs444
jbriggs444 is offline
#4
Jan2-14, 06:15 AM
P: 742

Random number generator


Quote Quote by shahrzad1994 View Post
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.


Register to reply

Related Discussions
Random Number Generator Linear & Abstract Algebra 126
Random number generator Programming & Computer Science 4
Random Number Generator Calculus & Beyond Homework 0
PHP Random number generator (Need help) General Math 3
PHP Random number generator Programming & Computer Science 0