Science  People  Locations  Timeline
Index: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Home > Pseudorandom number generator


 

A pseudorandom number generator (PRNG) is an algorithm which generates a sequence of numbers, the elements of which are approximately independent of each other.

The outputs of pseudorandom number generators are not truly random—they only approximate some of the properties of random numbers. John von Neumann emphasized this with the remark "Anyone who considers arithmetical methods of producing random digits is, of course, in a state of sin. 1 " While truly random numbers can be generated using hardware random number generators, pseudorandom numbers are a critical part of modern computing, from cryptography to the Monte Carlo method for simulating physical systems. Careful mathematical analysis is required to ensure that the generated numbers are sufficiently "random;" as Robert R. Coveyou of Oak Ridge National Laboratory once remarked, "The generation of random numbers is too important to be left to chance. 2 "

Most such algorithms attempt to produce samples that are uniformly distributed. Common classes of algorithms are linear congruential generators, lagged Fibonacci generators, linear feedback shift registers and generalised feedback shift registers . Recent instances of algorithms include Blum Blum Shub, Fortuna, and the Mersenne Twister.

1 Inherent nonrandomness

Because any PRNG run on a deterministic computer (contrast quantum computerMolecule of alanine used in NMR implementation of error correction. Qubits are implemented by spin states of carbon atoms. A quantum computer is any device for computation that makes direct use of distinctively quantum mechanical phenomena, such as superp) is a deterministic algorithm, its output will inevitably have certain properties that a true random sequenceA random sequence is a kind of stochastic process. In short, a random sequence is a sequence of random variables. Random sequences are essential in statistics. The statistical analysis of any experiment usually begins with the words "let X . X be independ would not exhibit. One of these is guaranteed periodicityIn mathematics, a periodic function is a function that repeats its values, after adding some definite period to the variable. Everyday examples are seen when the variable is time for instance the hands of a clock or the phases of the moon show periodic be—it is certain that if the generator uses only a fixed amount of memory then, given a sufficient number of iterations, the generator will revisit the same internal state twice, after which it will repeat forever. A generator that isn't periodic can be designed, but its memory requirements would grow as it ran. In addition, a PRNG can be started from an arbitrary starting point, or seed state, and will always produce an identical sequence from that point on.

In practice, many PRNGs exhibit artifactThis page is about artifacts in science. For other definitions, see Artifact (disambiguation). In natural science and signal processing, an artifact is any perceived distortion or other data error caused by the instrument of observation. For example, a cos which can cause them to fail statistically significant tests. These include, but are certainly not limited to:

Defects exhibited by a flawed PRNG may range from unnoticeable to ridiculous. The RANDURANDU is an infamous linear congruential pseudorandom number generator which has been used since the 1960s. It is defined by the recurrence: with odd. It is widely considered to be one of the most ill-conceived random number generators designed. Notably, random number algorithm used for decades on mainframe computerMainframes (often colloquially referred to as "big iron") are large, powerful, and expensive computers used mainly by government institutions and large companies for bulk data processing (such as censuses, industry/consumer statistics, ERP, and bank transs was flawed, and much research work of that time is less reliable than it should have been as a result. Sometimes, but not always, modeling problems are noticed and lead to improvements in PRNGs.



Read more »

Non User