Skip to main content Accessibility help
×
Hostname: page-component-84b7d79bbc-2l2gl Total loading time: 0 Render date: 2024-07-25T15:23:56.997Z Has data issue: false hasContentIssue false

8 - Producing random numbers and letters

Published online by Cambridge University Press:  13 August 2009

R. F. Churchhouse
Affiliation:
Cardiff University
Get access

Summary

Random sequences

Suppose that we have a long sequence of 0s and 1s, that is a long binary sequence. What do we mean when we say that the sequence is ‘random’? As an obvious first criterion it seems reasonable to expect that it will contain ‘about as many 0s as 1s’; but what do we mean by ‘about’?

If the sequence is exactly 1000 digits in length we would not necessarily expect it to contain exactly 500 0s and 500 1s, but if it contained, say, 700 0s and 300 1s we would surely think that it was not a random sequence. Somewhere between these two extremes would mark the limit of acceptability of what we would be prepared to accept as random: 530 0s and 470 1s for example; but another person might set different limits. Suppose, however, that the sequence did in fact consist of 500 0s followed by 500 1s. Since there are exactly 500 of each digit can we consider the sequence to be random? Clearly not, since in a random sequence we would expect the four two-digit numbers, 00, 01, 10 and 11, each to occur ‘about 250’ times but in this sequence 00 and 11 both occur 499 times, 01 occurs only once and 10 doesn't occur at all. Even if the sequence passes this test we could then ask whether the eight three-digit numbers 000, 001, 010, 011, 100, 101, 110 and 111 each occur ‘about 125’ times, and so on.

Type
Chapter
Information
Codes and Ciphers
Julius Caesar, the Enigma, and the Internet
, pp. 94 - 109
Publisher: Cambridge University Press
Print publication year: 2001

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×