Science Fair Projects Ideas - Random number generator

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

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

09-23-2007 01:00:40
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice