Safekipedia

Pseudorandomness

Discoverer · ages 10+Adapted from Wikipedia

A pseudorandom sequence of numbers is one that appears to be statistically random, even though it was produced by a completely deterministic and repeatable process. In other words, the numbers look random, but they are actually created by following a fixed set of steps.

Pseudorandom number generators are often used in computer programming. This is because the traditional ways people create randomness, such as rolling dice, depend on physical processes that computer programs cannot easily use.

Developments in hardware random number generator technology have challenged this idea. These are devices designed to produce randomness from physical sources.

Background

Random numbers are used for random sampling, Monte Carlo methods, board games, and gambling. In physics, most processes are deterministic, which means they always give the same result from the same starting point. Two exceptions are radioactive decay and quantum measurement, which are modeled as truly random. Because these are not practical sources of random numbers, people use pseudorandom numbers instead. These ideally behave as unpredictably as truly random numbers, even though a deterministic process produces them.

In many uses, the deterministic process is a computer algorithm called a pseudorandom number generator, which must first be given a starting number called a random seed. The same seed always produces the same sequence, so the seed must be well chosen and kept hidden, especially in security applications, where unpredictability is critical. Sometimes physical sources, such as radioactive decay, radio noise picked up between stations, or the timing of keystrokes, have been used when a sequence must be clearly unpredictable. Collecting these numbers takes time, so people often use some of these physical readings as a seed for a pseudorandom number generator.

History

Before modern computers, researchers who needed random numbers had to make them in other ways, such as using dice, cards, roulette wheels, and similar tools. Some also used existing tables of random numbers.

In 1927, the Cambridge University Press published a table of 41,600 digits made by L.H.C. Tippett. It was one of the first ways to give researchers a ready supply of random digits. In 1947, the RAND Corporation created numbers by using an electronic simulation of a roulette wheel. These results were published in 1955 as A Million Random Digits with 100,000 Normal Deviates.

In computational complexity

In theoretical computer science, a distribution is pseudorandom against a class of adversaries if no adversary from the class can tell it apart from the uniform distribution by any significant amount. This idea is studied in computational complexity theory and is useful in cryptography.

The formal definition uses finite sets and a class of functions. A distribution is ε-pseudorandom against that class if, for every function in the class, the statistical distance between the results of applying the function to samples from the distribution and to samples from the uniform distribution is at most ε. In practice, the class of functions often describes a model of computation with limited resources, and the distribution is often produced by a pseudorandom generator.

Quiz time!

5 questions about Pseudorandomness

Question 1 of 5

What does it mean for a sequence of numbers to be pseudorandom?

Keep exploring

This article is a child-friendly adaptation of the Wikipedia article on Pseudorandomness, available under CC BY-SA 4.0.