Printer Friendly
The Free Library
14,458,148 articles and books
Member login
User name  
Password 
 
Join us Forgot password?

Take a chance: scientists put randomness to work.


Since the dawn of written history, people have exploited the randomness of a roll of a die to inject their games with the thrill of the unpredictable. Today, randomness is finding myriad other uses, such as encrypting credit card numbers in Internet transactions, deciding how to allocate treatments in drug trials, choosing precincts to call in national polls, running online gambling Online gambling is a general term for gambling using the Internet. This article provides a brief introduction to some of the forms of online gambling, as well as discussing general issues.  sites, and helping physicists simulate phenomena ranging from the weather to traffic patterns. These applications, however, require many more random numbers than can be obtained from rolling a die. A busy commercial Web site, for example, uses hundreds of thousands of random numbers every minute to mask its users' credit card numbers. And in the research world, computer simulations eat up millions of random numbers in a matter of seconds. To accommodate these needs, researchers are creating a precise science out of something at which toddlers excel: making chaos at breakneck break·neck  
adj.
1. Dangerously fast: a breakneck pace.

2. Likely to cause an accident: a breakneck curve.
 speed.

Randomness is a slippery concept, easier to talk about than to define. Scientists instead tend to say what it isn't. A random number is one that can't be predicted.

Knowing some of the random numbers in a list doesn't make it easier to figure out the others. Over the past few decades, computer scientists have designed computer algorithms that produce a good approximation of true randomness. These algorithms churn out long sequences of pseudorandom numbers, which are scattered about the number line in roughly the same distribution as random numbers are. These pseudorandom numbers are unpredictable enough for many, but not all, purposes.

Now, physicists and computer scientists are figuring out ways to pull true randomness out of the physical world. One Web site, for instance, generates random numbers from the noise of a radio tuned between stations. And a commercial device put on the market last March harnesses nature's ultimate source of randomness: quantum physics quantum physics
n. (used with a sing. verb)
The branch of physics that uses quantum theory to describe and predict the properties of a physical system.



quantum physics

See quantum mechanics.
, which Albert Einstein famously described as God playing dice.

APPROXIMATELY RANDOM Although computers are expert at spewing out numbers, a computer program can't by itself produce random ones. Computers are engineered to behave deterministically, obeying the will of their users. "If a computer does something unpredictable, then we call it broken,' says Landon Noll, a cryptographer cryp·tog·ra·pher  
n.
One who uses, studies, or develops cryptographic systems and writings.

Noun 1. cryptographer - decoder skilled in the analysis of codes and cryptograms
cryptanalyst, cryptologist
 at the computer security firm SystemExperts in Sudbury, Mass.

However, computer scientists have figured out how to produce computer-generated sequences of numbers that are virtually indistinguishable from random numbers. To get a sense of how these algorithms operate, consider the following highly simplified version of a pseudorandom-number algorithm.

First, it's necessary to choose a starting number between 0 and 12, called the seed--say, the number 4. After that initial choice, the algorithm produces each new pseudorandom number by multiplying the preceding number by 17, dividing the result by 13, and taking the remainder.

This particular algorithm is a far cry from randomness, since it quickly falls into a pattern. The first few numbers in the sequence are 3, 12, 10, 1, and then 4, which brings us back to where we started. After that, the sequence simply repeats itself indefinitely.

All pseudorandom-number generators eventually fall into a repeating pattern. However, an algorithm that produces an extremely long pattern before repeating can be unpredictable enough to suit many purposes. Mathematicians have constructed effective pseudorandom-number generators similar to the above algorithm by using larger numbers than 17 and 13 and more-complicated procedures for generating the next number in the sequence. One widely used pseudorandom number generator A pseudorandom number generator (PRNG) is an algorithm to generate a sequence of numbers that approximate the properties of random numbers. The sequence is not truly random in that it is completely determined by a relatively small set of initial values, called the PRNG's  along these lines is the Mersenne Twister The Mersenne twister is a pseudorandom number generator linked to CR developed in 1997 by Makoto Matsumoto (松本 眞 , designed in 1997, which produces a sequence of [2.sup.19,937]-1 numbers before repeating.

Pseudorandom-number generators are key to computer simulations of complicated physical systems. For example, to search for the characteristic shape into which a protein molecule Noun 1. protein molecule - any large molecule containing chains of amino acids linked by peptide bonds
molecule - (physics and chemistry) the simplest structural unit of an element or compound
 will fold, researchers start with one possible shape and then make small, random changes in it, checking the stability of each new shape. Whenever the shape has gotten more stable, they replace the old one with the new. Then they repeat the same process, sometimes thousands of times.

Similar processes are used to simulate a wide range of phenomena, including weather, traffic flow, stock market swings, and radiation therapy for cancer.

A large simulation can swallow up Verb 1. swallow up - enclose or envelop completely, as if by swallowing; "The huge waves swallowed the small boat and it sank shortly thereafter"
eat up, immerse, swallow, bury
 tens of billions of random numbers. As a result, researchers put a high premium on the efficiency of the pseudorandom-number generator they use. The Mersenne Twister, which is one of the fastest pseudorandom-number generators around, is a popular choice.

Other pseudorandom-number generators are also widely used, including some that have serious flaws, says David Wagner
For the entomologist, see David L. Wagner
David A. Wagner (1974) is an Associate Professor of Computer Science at the University of California, Berkeley and a well-known researcher in cryptography and computer security.
, a computer scientist at the University of California, Berkeley The University of California, Berkeley is a public research university located in Berkeley, California, United States. Commonly referred to as UC Berkeley, Berkeley and Cal . For example, many computers come equipped with a random-number generator that alternates between odd and even numbers. A truly random sequence would never have such a regular structure.

A faulty random-number generator can wreck a scientific project. In one famous case in 1992, physicists realized that a computer simulation of atomic spins was giving completely wrong answers, even though the pseudorandom-number generator they were using had passed a stringent set of statistical tests (SN: 12/19&26/92, p. 422). Subtle correlations between the numbers the algorithm produced were being amplified by the simulation's calculations and skewing the results.

Fortunately, scientists are becoming more aware of the risks of using a pseudorandom number generator, even though they might not understand its workings, says Thomas Lumley, a statistician at the University of Washington in Seattle. "I think most people doing large simulations are educated now," he says.

KEEPING A SECRET While the Mersenne Twister does a good job of imitating randomness, mathematicians propose that certain other algorithms, while slower, are closer to true randomness. They are called cryptographically strong This term cryptographically strong is often used to describe an encryption algorithm, and implies, in comparison to some other algorithm (which is thus cryptographically weak), greater resistance to attack.  algorithms, and their output passes every statistical test that can be performed in a feasible amount of computer time to distinguish random numbers from numbers that fall into a pattern.

"If you used a cryptographically strong algorithm to shuffle decks of cards on an online gambling site, then even after I played hundreds of poker hands, I wouldn't be able to predict anything at all about the next hand" says Wagner.

These random-number generators are the algorithms of choice for applications such as encrypting credit card numbers in Internet transactions, for which unpredictability is of paramount importance.

"Even a hacker who is very smart and is willing to mount a brute-force attack shouldn't be able to predict anything about what random numbers you're generating," Wagner says.

Cryptographically strong algorithms, however, share an Achilles' heel with the other pseudorandom number generators. They all require the user to input a starting seed number. If hackers find out the secret seed, they can generate the entire output sequence instantly by using the same algorithm.

That's precisely what occurred in 1995, when Wagner, then a graduate student at Berkeley, and his fellow student Ian Goldberg Ian Avrum Goldberg (born March 31, 1973) is a Jewish-Canadian cryptographer and cypherpunk. He is best known for breaking Netscape's implementation of SSL (with David Wagner),[1]  cracked the random-number generator used by the Netscape web browser The program that serves as your front end to the Web on the Internet. In order to view a site, you type its address (URL) into the browser's Location field; for example, www.computerlanguage.com, and the home page of that site is downloaded to you.  to secure online transactions. The pair figured out that Netscape was constructing its seeds using easily predicted numbers, such as the time of day. Luckily for Netscape, the two students had no criminal intent. They simply publicized the browser's vulnerability, which Netscape quickly corrected.

In recent years, Wagner says, "there have been several other instances of widely deployed systems that have been vulnerable to attack because insufficient attention was paid to generating high-quality randomness."

To evade hackers, it's best to choose the seed randomly. However, this creates a chicken-and-egg problem. To generate the random seed using a computer, its necessary to run a pseudorandom-number generator, which in turn must be started off using a random seed. At some point, there must be a first seed, which a hacker could discover.

HARNESSING CHAOS Researchers are now making an end run around this vicious cycle Noun 1. vicious cycle - one trouble leads to another that aggravates the first
vicious circle

positive feedback, regeneration - feedback in phase with (augmenting) the input
 by finding ways to import random numbers from the world outside the computer. These numbers can then be used either as the seeds for computer algorithms or as random numbers in their own right.

Some of the simpler versions extract randomness out of human actions such as the motion of a computer mouse, say, or the time between keystrokes. Others, in a quest for Verb 1. quest for - go in search of or hunt for; "pursue a hobby"
quest after, go after, pursue

look for, search, seek - try to locate or discover, or try to establish the existence of; "The police are searching for clues"; "They are searching for the
 super fast random-number generation, are turning to more-exotic sources of randomness.

Most of these exploit chaotic physical systems, for which tiny changes in the starting conditions propagate into dramatic swings in the large-scale behavior of the system. Chaotic systems--such as lottery balls jumping about in a box--are not strictly speaking Adv. 1. strictly speaking - in actual fact; "properly speaking, they are not husband and wife"
properly speaking, to be precise
 random, but they generally include elements that are effectively impossible to predict.

One of the first of these physical random-number generators, called Random.org, uses a radio to pull random numbers out of the atmospheric noise Atmospheric noise is radio noise caused by natural atmospheric processes, primarily lightning discharges in thunderstorms.

All atmospheric noise is created by weather. More specifically, this noise comes from lightning flashes, with most of the noise caused by cloud-to-ground
 generated by weather systems.

"When we built this in 1997, we bought the cheapest radio we could find," says Mads Haahr, of Trinity College, Dublin For other institutions named Trinity College, see .
Trinity is located in the centre of Dublin, Ireland, on College Green opposite the former Irish Houses of Parliament (now a branch of the Bank of Ireland).
, who runs Random.org. "The guy in the shop thought we were crazy because we made him take it out of the box and put in batteries so we could listen to the noise between stations."

Haahr's Web site (www.random.org) can generate up to 3,000 random numbers per second. Over the last 6 years, it has dished dished  
adj.
1. Concave.

2. Slanting toward one another at the bottom. Used of a pair of wheels.

Adj. 1. dished - shaped like a dish or pan
dish-shaped, patelliform

concave - curving inward
 out more than 61 billion random numbers for free to an eclectic array of users. These include archaeologists choosing which quadrants of a large area to survey; a choreographer cho·re·o·graph  
v. cho·re·o·graphed, cho·re·o·graph·ing, cho·re·o·graphs

v.tr.
1. To create the choreography of: choreograph a ballet.

2.
 selecting the order, timing, and placement of dance steps; online card-playing sites shuffling their virtual decks; the U.S. Environmental Protection Agency Environmental Protection Agency (EPA), independent agency of the U.S. government, with headquarters in Washington, D.C. It was established in 1970 to reduce and control air and water pollution, noise pollution, and radiation and to ensure the safe handling and  determining which companies to include in a random audit of hazardous-material use; and a locksmith deciding how deeply to cut the notches on keys.

Another early random-number generator extracted randomness from a very retro source: lava lamps, whose illuminated blobs move unpredictably. In the lavarand project, created by Noll and colleagues in 1996, digital cameras trained on six lava lamps fed images into a computer, which converted the pictures into numbers (SN: 8/9/97, p. 92).

The lavarand apparatus is impractical, Noll readily acknowledges. It was intended, he says, mainly as a whimsical proof that it's possible to generate high-quality random numbers from a physical source.

While analyzing lavarand's workings, the researchers found to their surprise that most of the noise and unpredictability was coming not from the lava lamps but from the digital cameras. The team's latest version of lava lamp randomness, called LavaRnd, ironically does away with the lava lamps. It's simply a webcam running with its lens cap on. LavaRnd produces 200,000 random numbers per second, more than enough for many cryptography and simulation applications.

One of the tricks in designing physical random-number generators such as Random.org or LavaRnd is to erase any bias in the numbers. In a truly random stream of numbers, each combination of digits should appear as often as any other combination. However, in numbers in numbered parts; as, a book published in numbers.

See also: Number
 generated from the physical world, this is rarely the case. Even a coin toss, the seeming epitome of randomness, is subtly biased. Earlier this year, mathematicians proved that a tossed coin is slightly more likely to land on the face it started out on than on the opposite face (SN: 2/28/04, p. 131).

Over the decades, computer scientists have worked out computer algorithms to tackle this problem. In 1951, mathematician John von Neumann (person) John von Neumann - /jon von noy'mahn/ Born 1903-12-28, died 1957-02-08.

A Hungarian-born mathematician who did pioneering work in quantum physics, game theory, and computer science. He contributed to the USA's Manhattan Project that built the first atomic bomb.
 came up with a simple algorithm that works on sequences of bits. To balance a sequence between Os and 1s, von Neumann's algorithm groups the bits into pairs, then discards any pair in which the two bits are the same. If the two bits are different, the algorithm replaces the pair with the first bit--so, for instance, 01 would be shortened to o. The result is a new sequence that preserves all the unpredictability of the original sequence but in which 0s and 1s appear with roughly the same frequency.

Von Neumann's procedure throws away about 75 percent of the original sequence. Computer scientists have more recently come up with less-profligate algorithms, such as one that Noll and his colleagues designed for LavaRnd, called the Digital Blender.

"The Blender takes the original structure and chops it up and squeezes it down into a random mash of data" Noll says.

QUANTUM RANDOMNESS Although chaotic systems are good sources of unpredictability, they are deterministic, at least in principle. Given a precise knowledge of the physical parameters of a given weather system, for instance, it should be possible to figure out exactly what the system is going to do.

By contrast, quantum physics--the science of subatomic subatomic /sub·atom·ic/ (-ah-tom´ik) of or pertaining to the constituent parts of an atom.

sub·a·tom·ic
adj.
1. Of or relating to the constituents of the atom.

2.
 particles--is intrinsically random. According to according to
prep.
1. As stated or indicated by; on the authority of: according to historians.

2. In keeping with: according to instructions.

3.
 its laws, it's impossible to know for sure what a quantum system quantum system
n.
A physical or theoretical system that cannot be correctly described without the use of quantum physics.
 will do. Researchers are now building random number generators Computer random number generators are important in mathematics, cryptography and gambling. This list includes all common types, regardless of quality. Pseudorandom number generators (PRNGs)
The following algorithms are pseudorandom number generators:
  • Blum Blum Shub
 that exploit this unpredictability.

One such system called HotBits, created by John Walker of Four-milab in Switzerland, generates random numbers by timing radioactive decays of Krypton-85 atoms detected by a Geiger counter Geiger counter or Geiger-Müller (G-M) counter (gī`gər-mŭl`ər, –my . These decays happen at random intervals, quantum mechanics quantum mechanics: see quantum theory.
quantum mechanics

Branch of mathematical physics that deals with atomic and subatomic systems. It is concerned with phenomena that are so small-scale that they cannot be described in classical terms, and it is
 dictates. HotBits produces a modest 30 random numbers per second, not enough for the most number-hungry applications. However, another Swiss team has just produced a quantum random-number generator that produces 4 million random bits per second. Unlike Random.org, LavaRnd, and HotBits, this random-number generator is a commercial venture.

The new device, a matchbox-size module that can be mounted on a computer's circuit board, is produced by id Quantique id Quantique is a small company located in Geneva, Switzerland. It sells quantum key distribution systems, single photon counters, and physical random number generators. The company was the first in the world to offer a commercial quantum key distribution system in 2004.  in Geneva Geneva, canton and city, Switzerland
Geneva (jənē`və), Fr. Genève, canton (1990 pop. 373,019), 109 sq mi (282 sq km), SW Switzerland, surrounding the southwest tip of the Lake of Geneva.
. It operates by beaming photons of light at a semitransparent mirror. According to quantum theory quantum theory, modern physical theory concerned with the emission and absorption of energy by matter and with the motion of material particles; the quantum theory and the theory of relativity together form the theoretical basis of modern physics. , each photon has a 50 percent chance of passing through the mirror and the same chance of being reflected, making the device a quantum idealization idealization /ide·al·iza·tion/ (i-de?il-i-za´shun) a conscious or unconscious mental mechanism in which the individual overestimates an admired aspect or attribute of another person.  of a coin toss. The device's creators predict that its simplicity will appeal to potential users. Any machine has the potential to break, and if a physical random-number generator is complicated, it can be hard to tell whether it is in good working order.

"You can never definitively test that random-numbers are really random," says Gregoire Ribordy, id Quantique's CEO (1) (Chief Executive Officer) The highest individual in command of an organization. Typically the president of the company, the CEO reports to the Chairman of the Board. . "But this generator is so simple that it's easy to test whether it is working properly just by testing the components."

Some physicists argue that quantum systems are more purely random than chaotic systems are. Yet in the final analysis, quantum physics and chaos are probably equally good sources of randomness for all practical purposes, Haahr says.

To actually predict the behavior of a chaotic system like the weather, for example, "you would probably need knowledge of the position and velocity of every single molecule in the planet's weather systems, which is of course infeasible," he observes. "It's hard enough to predict the weather for the next couple of days."
COPYRIGHT 2004 Science Service, Inc.
No portion of this article can be reproduced without the express written permission from the copyright holder.
Copyright 2004, Gale Group. All rights reserved. Gale Group is a Thomson Corporation Company.

 Reader Opinion

Title:

Comment:



 

Article Details
Printer friendly Cite/link Email Feedback
Author:Klarreich, Erica
Publication:Science News
Geographic Code:1U9CA
Date:Dec 4, 2004
Words:2415
Previous Article:DNA bar codes: life under the scanner.
Next Article:Inhaled particles damage vascular lining.(Environment)(Brief Article)
Topics:



Related Articles
Numbers at random: number theory supplies a superior random-number generator.
Monte Carlo physics: a cautionary lesson. (hidden digit patterns randomly generated may influence simulation results)
Flipping a quantum mechanical coin. (emission of light from excited atom appears to be random) (Brief Article)
Lava lamp randomness.(researchers use Lava Lite lamps to make random-number-generator called lavarand)(Brief Article)
The power of limited thinking: small-scale minds may pay nonrandom dividends.
NIST DEVELOPS RANDOMNESS TESTS FOR RANDOM AND PSEUDORANDOM NUMBER GENERATORS USED IN CRYPTOGRAPHIC APPLICATIONS.(Brief Article)
M&Ms pack more tightly than spheres.(Candy Science)
Model growth: simulations expose branching nature of polymer crystals.(This Week)
Certainly uncertain.(Letters)(Letter to the Editor)
Darwin & the Cardinal.(The Last Word)(Charles Darwin)(Cardinal Christoph Schonborn)

Terms of use | Copyright © 2009 Farlex, Inc. | Feedback | For webmasters | Submit articles