Dog Breeds Information and More
  Komondor - Dog Breeds Facts and Information Dog Breeds Selector A to Z dog breeds Forums

 
Dog names
Dog training
Toy dogs
Intelligence
Dog health
Dog worship
Ticks

 
Golden Retriever
Labrador Retriever
Jack Russell
 
Find a Breed
 
Dog Breeds Encyclopedia
 

Random number generator

A random number generator is a computational or physical device designed to generate a sequence of numbers that does not have any easily discernable pattern, so that the sequence can be treated as being random.

Contents

Computational versus physical random number generators

A computational random number generator is more accurately called a "pseudorandom" number generator, since the sequence is generated by a specific algorithm, which can be replicated exactly to yield an identical sequence. A numeric value, called a seed, is used in the algorithm to produce the random number. This seed is often based on the computer's local time at the moment the computer code is executed, thus reducing the probability of producing the same starting sequence twice.

A physical random number generator is based on an essentially random atomic or subatomic physical phenomenon. Examples of such phenomena include radioactive decay and thermal noise.

SGI has patented a method called lavarand for generating random numbers using digital snapshots of lava lamps (patent #5,732,138). LavaRnd has improved and generalized this method using various physical chaotic processes as sources. Their algorithm has been placed in the public domain.

Quantis, from id Quantique SA, is a physical random number generator exploiting an elementary quantum optics process. Photons - light particles - are sent one by one onto a semi-transparent mirror and detected. The exclusive events (reflection - transmission) are associated to "0" - "1" bit values.

Implications and applications

Computational and physical random number generators are commonly combined to obtain the benefits of both kinds. Computational random number generators are typically much faster than physical ones, but physical random number generators have the advantage that the sequences they produce are completely unpredictable, assuming that current theories of quantum physics are correct. See also hardware random number generator.

Random numbers are frequently used in simulation of statistical events, a very simple example being the outcome of tossing a coin. More complicated implications are the simulation of genetics in whole populations, or the behaviour of sub-atomic particles. Such simulation methods, often called stochastic simulation methods have many applications in computer simulation of real-world effects.

Random number generators have several important applications. Random number generators were originally constructed to carry out computer simulation of physical phenomena, specifically the simulation of neutron transport in nuclear fission. Random number generation is also important in modern cryptography, and is sometimes used in parapsychology as a test of precognition.

Every modern electronic casino game contains one or more random number generators that decide the outcome of a trial in the game. Even in slot machines where mechanical reels appear to spin randomly, the reels are actually spinning for entertainment value and eventually stop exactly where the machine's random number generators decided they would stop when the handle was first pulled..

Low-discrepancy sequences

Some computations that make use of a random number generator can be summarized as the computation of a total or average value, such as the computation of integrals by the Monte Carlo method. For such problems, it may be possible to find a more accurate solution by the use of so-called low-discrepancy sequences, also called quasirandom numbers. Such sequences have a definite pattern that fills in gaps evenly, qualitatively speaking; a truly random sequence usually leaves larger gaps.

True Random Numbers

Obtaining true random numbers (numbers which are completely random and unpredictable) is a very difficult task; most random number generators have a certain amount of predictability associated with them. Many RNGs, for example, repeat the same string of numbers after n iterations. Others generate random numbers which tend to get focused in certain areas instead of being distributed uniformly. Also, when using random numbers, we must take into account whether they include or exclude their upper and lower bounds. Some 0 to 1 RNGs include 0 but exclude 1, while others include both, and yet others exclude both.

If you have access to many independent RNGs, XORing their results will provide a combined RNG that is at least as good as the best RNG you have access to. More details about uncorrelated near random bit streams.

See also

External links

The contents of this article are licensed from Wikipedia.org under the
GNU Free Documentation License. How to see transparent copy