Randomness
In common usage, randomness is the apparent or actual lack of definite pattern or predictability in information. A random sequence of events, symbols or steps often has no order and does not follow an intelligible pattern or combination. ...
has multiple uses in
science
Science is a systematic discipline that builds and organises knowledge in the form of testable hypotheses and predictions about the universe. Modern science is typically divided into twoor threemajor branches: the natural sciences, which stu ...
,
art,
statistics
Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
,
cryptography
Cryptography, or cryptology (from "hidden, secret"; and ''graphein'', "to write", or ''-logy, -logia'', "study", respectively), is the practice and study of techniques for secure communication in the presence of Adversary (cryptography), ...
,
gaming,
gambling
Gambling (also known as betting or gaming) is the wagering of something of Value (economics), value ("the stakes") on a Event (probability theory), random event with the intent of winning something else of value, where instances of strategy (ga ...
, and other fields. For example,
random assignment in
randomized controlled trial
A randomized controlled trial (or randomized control trial; RCT) is a form of scientific experiment used to control factors not under direct experimental control. Examples of RCTs are clinical trials that compare the effects of drugs, surgical ...
s helps scientists to test hypotheses, and
random numbers or
pseudorandom numbers help video games such as
video poker.
These uses have different levels of
requirement
In engineering, a requirement is a condition that must be satisfied for the output of a work effort to be acceptable. It is an explicit, objective, clear and often quantitative description of a condition to be satisfied by a material, design, pro ...
s, which leads to the use of different methods. Mathematically, there are distinctions between
randomization
Randomization is a statistical process in which a random mechanism is employed to select a sample from a population or assign subjects to different groups.Oxford English Dictionary "randomization" The process is crucial in ensuring the random alloc ...
,
pseudorandomization, and
quasirandomization, as well as between
random number generators and
pseudorandom number generator
A pseudorandom number generator (PRNG), also known as a deterministic random bit generator (DRBG), is an algorithm for generating a sequence of numbers whose properties approximate the properties of sequences of random number generation, random n ...
s. For example, applications in cryptography usually have strict requirements, whereas other uses (such as generating a "quote of the day") can use a looser standard of pseudorandomness.
Early uses
Games
Unpredictable (by the humans involved) numbers (usually taken to be
random
In common usage, randomness is the apparent or actual lack of definite pattern or predictability in information. A random sequence of events, symbols or steps often has no order and does not follow an intelligible pattern or combination. ...
numbers) were first investigated in the context of
gambling
Gambling (also known as betting or gaming) is the wagering of something of Value (economics), value ("the stakes") on a Event (probability theory), random event with the intent of winning something else of value, where instances of strategy (ga ...
developing, sometimes, pathological forms like
apophenia. Multiple randomizing devices such as
dice
A die (: dice, sometimes also used as ) is a small, throwable object with marked sides that can rest in multiple positions. Dice are used for generating random values, commonly as part of tabletop games, including dice games, board games, ro ...
,
shuffling playing cards
Shuffling is a technique used to randomization, randomize a deck of playing cards, introducing an element of chance into card games. Various shuffling methods exist, each with its own characteristics and potential for manipulation.
One of the ...
, and
roulette
Roulette (named after the French language, French word meaning "little wheel") is a casino game which was likely developed from the Italy, Italian game Biribi. In the game, a player may choose to place a bet on a single number, various grouping ...
wheels, seem to have been developed for use in
games of chance. Electronic gambling equipment cannot use these and so theoretical problems are less easy to avoid; methods of creating them are sometimes regulated by governmental gaming commissions.
Modern electronic
casino
A casino is a facility for gambling. Casinos are often built near or combined with hotels, resorts, restaurants, retail shops, cruise ships, and other tourist attractions. Some casinos also host live entertainment, such as stand-up comedy, conce ...
games contain often one or more
random number generator
Random number generation is a process by which, often by means of a random number generator (RNG), a sequence of numbers or symbols is generated that cannot be reasonably predicted better than by random chance. This means that the particular ou ...
s which decide the outcome of a trial in the game. Even in modern
slot machines, where mechanical reels seem to spin on the screen, the reels are actually spinning for entertainment value only. They eventually stop exactly where the machine's software decided they would stop when the handle was first pulled. It has been alleged that some gaming machines' software is deliberately biased to prevent true randomness, in the interests of maximizing their owners' revenue; the history of biased machines in the gambling industry is the reason government inspectors attempt to supervise the machines—electronic equipment has extended the range of supervision. Some thefts from casinos have used clever modifications of internal software to bias the outcomes of the machines—at least in those which have been discovered. Gambling establishments keep close track of machine payouts in an attempt to detect such alterations.
Random draws are often used to make a decision where no rational or fair basis exists for making a deterministic decision, or to make unpredictable moves.
Political use
Athenian democracy
Fifth century BC
Athenian democracy
Athenian democracy developed around the 6th century BC in the Ancient Greece, Greek city-state (known as a polis) of Classical Athens, Athens, comprising the city of Athens and the surrounding territory of Attica, and focusing on supporting lib ...
developed out of a notion of
isonomia (equality of political rights), and random selection was a principal way of achieving this fairness. Greek
democracy
Democracy (from , ''dēmos'' 'people' and ''kratos'' 'rule') is a form of government in which political power is vested in the people or the population of a state. Under a minimalist definition of democracy, rulers are elected through competitiv ...
(literally meaning "rule by the people") was actually run by the people: administration was in the hands of committees
allotted from the people and regularly changed. Although it may seem strange to those used to modern
liberal democracy
Liberal democracy, also called Western-style democracy, or substantive democracy, is a form of government that combines the organization of a democracy with ideas of liberalism, liberal political philosophy. Common elements within a liberal dem ...
, the Athenian Greeks considered
elections
An election is a formal group decision-making process whereby a population chooses an individual or multiple individuals to hold public office.
Elections have been the usual mechanism by which modern representative democracy has operated ...
to be essentially undemocratic.
This was because citizens chosen on merit or popularity contradicted the democratic equality of all citizenry. In addition, allotment prevented the corrupt practice of buying votes as no one could know who would be selected as a magistrate, or to sit on a
jury
A jury is a sworn body of people (jurors) convened to hear evidence, make Question of fact, findings of fact, and render an impartiality, impartial verdict officially submitted to them by a court, or to set a sentence (law), penalty or Judgmen ...
.
Modern politics
Allotment, also called
sortition
In governance, sortition is the selection of public officer, officials or jurors at random, i.e. by Lottery (probability), lottery, in order to obtain a representative sample.
In ancient Athenian democracy, sortition was the traditional and pr ...
, is today used in the selection of
juror
A jury is a sworn body of people (jurors) convened to hear evidence, make Question of fact, findings of fact, and render an impartiality, impartial verdict officially submitted to them by a court, or to set a sentence (law), penalty or Judgmen ...
s in Anglo-Saxon legal systems like the
UK and
United States
The United States of America (USA), also known as the United States (U.S.) or America, is a country primarily located in North America. It is a federal republic of 50 U.S. state, states and a federal capital district, Washington, D.C. The 48 ...
.
Proposals have been made for its use in government such as a new constitution for Iraq and various proposals for Upper Houses chosen by allotment—see .
[ Scholars have studied the potential of random selection of personnel in politics and organizations.][For example:
*
*
*
*
*
*
* ]
Science
Random numbers have uses in physics
Physics is the scientific study of matter, its Elementary particle, fundamental constituents, its motion and behavior through space and time, and the related entities of energy and force. "Physical science is that department of knowledge whi ...
such as electronic noise studies, engineering
Engineering is the practice of using natural science, mathematics, and the engineering design process to Problem solving#Engineering, solve problems within technology, increase efficiency and productivity, and improve Systems engineering, s ...
, and operations research
Operations research () (U.S. Air Force Specialty Code: Operations Analysis), often shortened to the initialism OR, is a branch of applied mathematics that deals with the development and application of analytical methods to improve management and ...
. Multiple methods of statistical analysis, such as the bootstrap method, require random numbers. Monte Carlo method
Monte Carlo methods, or Monte Carlo experiments, are a broad class of computational algorithms that rely on repeated random sampling to obtain numerical results. The underlying concept is to use randomness to solve problems that might be ...
s in physics and computer science require random numbers.
Random numbers are often used in parapsychology
Parapsychology is the study of alleged psychic phenomena (extrasensory perception, telepathy, teleportation, precognition, clairvoyance, psychokinesis (also called telekinesis), and psychometry (paranormal), psychometry) and other paranormal cla ...
as a test of precognition
Precognition (from the Latin 'before', and 'acquiring knowledge') is the purported psychic phenomenon of seeing, or otherwise becoming directly aware of, events in the future.
There is no accepted scientific evidence that precognition is a ...
.
Statistical sampling
Statistical practice is based on statistical theory which is, itself, founded on the concept of randomness
In common usage, randomness is the apparent or actual lack of definite pattern or predictability in information. A random sequence of events, symbols or steps often has no order and does not follow an intelligible pattern or combination. ...
. A number of elements of statistical practice depend on randomness via random numbers. Where those random numbers fail to be actually random, any subsequent statistical
Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
analysis may suffer from systematic bias
Systematic may refer to:
Science
* Short for systematic error
* Systematic fault
In engineering, a fault is a defect or problem in a system that causes it to fail or act abnormally. An example of this is the Windows fault screen, commonly r ...
. Elements of statistical practice that depend on randomness include: choosing a representative sample of the population being examined, disguising the protocol of a study from a participant (see randomized controlled trial
A randomized controlled trial (or randomized control trial; RCT) is a form of scientific experiment used to control factors not under direct experimental control. Examples of RCTs are clinical trials that compare the effects of drugs, surgical ...
) and Monte Carlo
Monte Carlo ( ; ; or colloquially ; , ; ) is an official administrative area of Monaco, specifically the Ward (country subdivision), ward of Monte Carlo/Spélugues, where the Monte Carlo Casino is located. Informally, the name also refers to ...
simulation.
These applications are useful in auditing
An audit is an "independent examination of financial information of any entity, whether profit oriented or not, irrespective of its size or legal form when such an examination is conducted with a view to express an opinion thereon." Auditing al ...
(for determining samples - such as invoice
An invoice, bill, tab, or bill of costs is a commercial document that includes an itemized list of goods or services furnished by a seller to a buyer relating to a sale transaction, that usually specifies the price and terms of sale, quanti ...
s) and experimental design (for example in the creation of double-blind trials).
Analysis
Many experiment
An experiment is a procedure carried out to support or refute a hypothesis, or determine the efficacy or likelihood of something previously untried. Experiments provide insight into cause-and-effect by demonstrating what outcome occurs whe ...
s in physics rely on a statistical analysis of their output. For example, an experiment might collect X-ray
An X-ray (also known in many languages as Röntgen radiation) is a form of high-energy electromagnetic radiation with a wavelength shorter than those of ultraviolet rays and longer than those of gamma rays. Roughly, X-rays have a wavelength ran ...
s from an astronomical source and then analyze the result for periodic signals. Since random noise can be expected to appear to have faint periodic signals embedded in it, statistical analysis is required to determine the likelihood that a detected signal actually represents a genuine signal. Such analysis methods requires the generation of random numbers. If the statistical method is extremely sensitive to patterns in the data (such as those used to search for binary pulsar
A pulsar (''pulsating star, on the model of quasar'') is a highly magnetized rotating neutron star that emits beams of electromagnetic radiation out of its Poles of astronomical bodies#Magnetic poles, magnetic poles. This radiation can be obse ...
s), large amounts of data with no recognizable pattern are needed.
Simulation
In multiple scientific and engineering fields, computer simulations of real phenomena are commonly used. When the real phenomena are affected by unpredictable processes, such as radio noise or day-to-day weather, these processes can be simulated using random or pseudo-random numbers.
Automatic random number generator
Random number generation is a process by which, often by means of a random number generator (RNG), a sequence of numbers or symbols is generated that cannot be reasonably predicted better than by random chance. This means that the particular ou ...
s were first constructed to carry out computer simulation of physical phenomena, notably simulation of neutron transport in nuclear fission
Nuclear fission is a reaction in which the nucleus of an atom splits into two or more smaller nuclei. The fission process often produces gamma photons, and releases a very large amount of energy even by the energetic standards of radioactiv ...
.
Pseudo-random numbers are frequently used in simulation
A simulation is an imitative representation of a process or system that could exist in the real world. In this broad sense, simulation can often be used interchangeably with model. Sometimes a clear distinction between the two terms is made, in ...
of statistical events, a simple example being the outcome of tossing a coin. More complicated situations are simulation of population genetics, or the behaviour of sub-atomic particles. Such simulation methods, often called stochastic Stochastic (; ) is the property of being well-described by a random probability distribution. ''Stochasticity'' and ''randomness'' are technically distinct concepts: the former refers to a modeling approach, while the latter describes phenomena; i ...
methods, have a number of applications in computer simulation of real-world processes.
Some more speculative projects, such as the Global Consciousness Project, monitor fluctuations in the randomness of numbers generated by multiple hardware random number generators in an attempt to predict the scope of an event in near future. The intent is to prove that large-scale events that are about to happen build up a "pressure" which affects the RNGs.
Cryptography
A ubiquitous use of unpredictable random numbers is in cryptography
Cryptography, or cryptology (from "hidden, secret"; and ''graphein'', "to write", or ''-logy, -logia'', "study", respectively), is the practice and study of techniques for secure communication in the presence of Adversary (cryptography), ...
, which underlies most of the schemes which attempt to provide security in modern communications (e.g., confidentiality
Confidentiality involves a set of rules or a promise sometimes executed through confidentiality agreements that limits the access to or places restrictions on the distribution of certain types of information.
Legal confidentiality
By law, la ...
, authentication
Authentication (from ''authentikos'', "real, genuine", from αὐθέντης ''authentes'', "author") is the act of proving an Logical assertion, assertion, such as the Digital identity, identity of a computer system user. In contrast with iden ...
, electronic commerce
E-commerce (electronic commerce) refers to Commerce, commercial activities including the electronic buying or selling Goods and services, products and services which are conducted on online platforms or over the Internet. E-commerce draws on tec ...
, etc.).
For example, if a user wants to use an encryption algorithm, it is best that they select a random number as the key. The selection must have high entropy
Entropy is a scientific concept, most commonly associated with states of disorder, randomness, or uncertainty. The term and the concept are used in diverse fields, from classical thermodynamics, where it was first recognized, to the micros ...
(i.e., unpredictability) to any attacker, thus increasing attack difficulty. With keys having low entropy (i.e., relatively easily guessable by attackers), security is likely to be compromised. To illustrate, imagine if a simple 32 bit linear congruential pseudo-random number generator of the type supplied with most programming languages (e.g., as the 'rand' or 'rnd' function) is used as a source of keys. There will only be some four billion possible values produced before the generator repeats itself. A suitably motivated adversary could simply test them all; this is practical as of 2010, using readily available computers. Even if a linear congruential RNG is used with 1000-bit parameters, it is a simple exercise in linear algebra to recover the modulus m, and the constants a and b, where x' = ax +b (mod m), given only five consecutive values. Even if a better random number generator is used, it might be insecure (e.g., the seed
In botany, a seed is a plant structure containing an embryo and stored nutrients in a protective coat called a ''testa''. More generally, the term "seed" means anything that can be Sowing, sown, which may include seed and husk or tuber. Seeds ...
might be guessable), producing predictable keys and reducing security to nil. (A vulnerability of this sort was famously discovered in an early release of Netscape Navigator, forcing the authors to quickly find a source of "more random" random numbers.) For these applications, truly random numbers are ideal, and high quality pseudo-random numbers are necessary if truly random numbers, such as coming from a hardware random number generator, are unavailable.
Truly random numbers are absolutely required to be assured of the theoretical security provided by the one-time pad — the only provably unbreakable encryption
In Cryptography law, cryptography, encryption (more specifically, Code, encoding) is the process of transforming information in a way that, ideally, only authorized parties can decode. This process converts the original representation of the inf ...
algorithm. Furthermore, those random sequences cannot be reused and must never become available to any attacker, which implies a continuously operable generator. See Venona for an example of what happens when these requirements are violated when using a one-time pad.
For cryptographic purposes, one normally assumes some upper limit on the work an adversary can do (usually this limit is astronomically sized). If one has a pseudo-random number generator whose output is "sufficiently difficult" to predict, one can generate true random numbers to use as the initial value (i.e., the seed), and then use the pseudo-random number generator to produce numbers for use in cryptographic applications. Such random number generators are called cryptographically secure pseudo-random number generators, and several have been implemented (for example, the /dev/urandom device available on most Unixes, the Yarrow
''Achillea millefolium'', commonly known as yarrow () or common yarrow, is a flowering plant in the family Asteraceae. Growing to tall, it is characterized by small whitish flowers, a tall stem of fernlike leaves, and a pungent odor.
The plan ...
and Fortuna
Fortuna (, equivalent to the Greek mythology, Greek goddess Tyche) is the goddess of fortune and the personification of luck in Religion in ancient Rome, Roman religion who, largely thanks to the Late Antique author Boethius, remained popular thr ...
designs, server, and AT&T Bell Laboratories
Nokia Bell Labs, commonly referred to as ''Bell Labs'', is an American industrial research and development company owned by Finnish technology company Nokia. With headquarters located in Murray Hill, New Jersey, Murray Hill, New Jersey, the compa ...
"truerand"). As with all cryptographic software, there are subtle issues beyond those discussed here, so care is certainly indicated in actual practice. In any case, it is sometimes impossible to avoid the need for true (i.e., hardware-based) random number generators.
Since a requirement in cryptography is high entropy, ''any'' published random sequence is a poor choice, as are such sequences as the digits in an irrational number
In mathematics, the irrational numbers are all the real numbers that are not rational numbers. That is, irrational numbers cannot be expressed as the ratio of two integers. When the ratio of lengths of two line segments is an irrational number, ...
such as the φ or even in transcendental numbers such as π, or e. All are available to an enterprising attacker. Put another way, in cryptography, random bit streams need to be not only random, but also secret and hence unpredictable. Public or third-party sources of random values, or random values computed from publicly observable phenomena (weather, sports game results, stock prices), are almost never cryptographically acceptable. Their use may be tempting, but in reality, they permit easier attacks than attacking the cryptography.
Since most cryptographic applications require a few thousand bits at most, slow random number generators serve well—if they are actually random. This use of random generators is important; some informed observers believe every computer should have a way to generate true random numbers.
Literature, music and art
Some aesthetic theories claim to be based on randomness in one way or another. Little testing is done in these situations, and so claims of reliance on and use of randomness are generally poorly based in definite theory and more on an impression of randomness from technical fields.
An example of a need for randomness sometimes occurs in arranging items in an art exhibit. Usually this is avoided by using a theme. As John Cage pointed out, "While there are many ways that sounds might be produced .e., in terms of patterns few are attempted". Similarly, the arrangement of art in exhibits is often deliberately non-random. One case of this was Hitler's attempt to portray modern art in the worst possible light by arranging works in worst possible manner. A case can be made for trying to make art in the worst possible way; i.e., either as anti-art
Anti-art is a loosely used term applied to an array of concepts and attitudes that reject prior definitions of art and question art in general. Somewhat paradoxically, anti-art tends to conduct this questioning and rejection from the vantage poi ...
, or as actually random art.
Dadaism
Dada () or Dadaism was an anti-establishment art movement that developed in 1915 in the context of the Great War and the earlier anti-art movement. Early centers for dadaism included Zürich and Berlin. Within a few years, the movement had s ...
, as well as other movements in art and letters, has attempted to accommodate and acknowledge randomness in various ways. Often people mistake order for randomness based on lack of information; e.g., Jackson Pollock
Paul Jackson Pollock (; January 28, 1912August 11, 1956) was an American painter. A major figure in the abstract expressionist movement, Pollock was widely noticed for his "Drip painting, drip technique" of pouring or splashing liquid household ...
's drip paintings, Helen Frankenthaler's abstractions (e.g., "For E.M."). Thus, in some theories of art, all art is random in that it's "just paint and canvas" (the explanation of Frank Stella's work).
Similarly, the "unexpected" ending is part of the nature of interesting literature. An example of this is Denis Diderot
Denis Diderot (; ; 5 October 171331 July 1784) was a French philosopher, art critic, and writer, best known for serving as co-founder, chief editor, and contributor to the along with Jean le Rond d'Alembert. He was a prominent figure during th ...
's novel ''Jacques le fataliste'' (literally: ''James the Fatalist''; sometimes referred to as ''Jacques the Fatalist'' or ''Jacques the Servant and his Master''). At one point in the novel, Diderot speaks directly to the reader:
Diderot was making the point that the novel (then a recent introduction to European literature) seemed random (in the sense of being invented out of thin air by the author, not in a modern technical sense). See also Eugenio Montale, Theatre of the Absurd.
Randomness in music
Music is the arrangement of sound to create some combination of Musical form, form, harmony, melody, rhythm, or otherwise Musical expression, expressive content. Music is generally agreed to be a cultural universal that is present in all hum ...
includes John Cage
John Milton Cage Jr. (September 5, 1912 – August 12, 1992) was an American composer and music theorist. A pioneer of indeterminacy in music, electroacoustic music, and Extended technique, non-standard use of musical instruments, Cage was one ...
's chance-derived ''Music of Changes
''Music of Changes'' is a piece for solo piano by John Cage. Composed in 1951 for pianist and friend David Tudor, it is a ground-breaking piece of Indeterminacy (music), indeterminate music. The process of composition involved applying decisions ...
'', stochastic music, aleatoric music, indeterminate music, or generative music
Generative music is a term popularized by Brian Eno to describe music that is ever-different and changing, and that is created by a system.
Historical background
In 1995 whilst working with SSEYO's Koan_(program), Koan software (built by Tim ...
.
Other uses
Random numbers are also used in situations where "fairness" is approximated by randomization
Randomization is a statistical process in which a random mechanism is employed to select a sample from a population or assign subjects to different groups.Oxford English Dictionary "randomization" The process is crucial in ensuring the random alloc ...
, such as selecting juror
A jury is a sworn body of people (jurors) convened to hear evidence, make Question of fact, findings of fact, and render an impartiality, impartial verdict officially submitted to them by a court, or to set a sentence (law), penalty or Judgmen ...
s and military draft lotteries. In the Book of Numbers
The Book of Numbers (from Biblical Greek, Greek Ἀριθμοί, ''Arithmoi'', , ''Bəmīḏbar'', ; ) is the fourth book of the Hebrew Bible and the fourth of five books of the Jewish Torah. The book has a long and complex history; its final f ...
(33:54), Moses
In Abrahamic religions, Moses was the Hebrews, Hebrew prophet who led the Israelites out of slavery in the The Exodus, Exodus from ancient Egypt, Egypt. He is considered the most important Prophets in Judaism, prophet in Judaism and Samaritani ...
commands the Israelites to apportion the land by lot.
Other examples include selecting, or generating, a "Random Quote of the Day" for a website, or determining which way a villain might move in a computer game.
Weaker forms of ''randomness'' are also closely associated with hash algorithms and in creating amortized searching and sorting algorithm
In computer science, a sorting algorithm is an algorithm that puts elements of a List (computing), list into an Total order, order. The most frequently used orders are numerical order and lexicographical order, and either ascending or descending ...
s.
See also
* Black swan theory
* Flipism
Flipism, sometimes spelled "flippism", is a personal philosophy under which Decision making, decisions are made by Coin flipping, flipping a coin. It originally appeared in the ''Donald Duck'' Disney comics, Disney comic "Flip Decision" by Carl Bar ...
References
{{Reflist
External links
* http://random.org
* https://flipcoins.net/en/numbers