Footnotes:

# Random selection of numbers

Page last updated 14 Feb 2023

Before we go any further, let us make it clear that although one might see the term “random number”, there’s no such thing as a “random number”. The term “random” means selected randomly, and a number has no innate randomness; the term random only becomes applicable to a number after it has been chosen by some truly non-predetermined method from a set of numbers, where each number is equally likely - in which case it would be more correct to say “randomly chosen number”. Having got that out of the way, we can observe that one often sees statements such as:

*“For any given real number r, the probability of that real number being selected at random is exactly zero.”*

This might appear to be rather a strange statement, so let’s look at what it involves. First of all we need to consider what the definition of probability is.

Objectively, the probability of an event having a particular outcome is simply the ratio of the number of times that outcome occurs relative to the total number of events, that is, *the number of positive outcomes* divided by *the total number of events.* There are also definitions of probability which include estimates, but here we are only concerned with probability in a rigorously objective sense since we are ostensibly dealing with rigorously calculated values.

For real world events that have occurred, the probability value is in principle completely determined, although in reality some of the data is usually inaccessible. For real world events, one might assume that, given sufficient data, the calculated value is a reasonable prediction of the likelihood of a positive outcome in a future event. A probability value of 1 means that the outcome is certain to occur on every happening of the event, while a probability value of 0 means that the outcome can never occur on any happening of the event.

There are two ways to obtain a probability value:

- By experimentation
- By calculation

In the first case, one can never be certain that the value is ever anything other than an approximation, that is, there is no guarantee that the value given by a particular sample used for the experiment will hold for future events.

In the second case, if one analyses the situation, one may be able to determine the relative frequencies of different outcomes of an event. For example, one may assume that for a perfect die, and given sufficient perturbation of the initial state of the die, the outcomes of any particular number between 1 and 6 occurring are equal and hence the probability of a random throw of the die being, for example, 4 is ** ^{1}/_{6}**.

We now ask what does it mean to *“select a real number at random”* ?

For a human, one can only select a number that one can define within a reasonable timescale. Obviously, one cannot select a number by actually selecting a limitlessly long string of digits - no, one either has to write down a finite string of digits, or else write down a definition of a number. For an irrational number, the latter is the only possible way of selecting an irrational number. And, as already noted, you are more likely to select a number that can be relatively easily defined - it is not likely that you will select a number that requires twenty million symbols to define it.

So where does the claim come from that, for example, the probability of *“selecting at random”* the number 0.5 from the set of all real numbers is exactly zero?

Clearly it cannot mean the probability of a human selecting the number 0.5, so the only alternative is that some sort of hypothetical non-physical selection mechanism is being assumed. However, such an assumption cannot sit alongside the claim that the probability of selecting any specific real number is zero. That is contradictory, since on the one hand, any such hypothetical selection mechanism must be something that * can* select a real number, yet on the other hand, the probability of it selecting any particular number is said to be zero, hence it is impossible for the selection mechanism to actually select any number.

So where does this notion of a probability of exactly zero for selecting the number 0.5 come from? It appears to come from the notion, that, for the event of *“selecting a number at random”* the ratio of the number of times when that outcome is the number 0.5 to the total number of outcomes. Here we will use ** x** to refer to the number of times when 0.5 is selected. The total number of outcomes is limitlessly large, giving the result:

^{x}⁄_{limitlessly large quantity}

and the assumption is that this has a value of zero.

If the ** x** is a finite value, then it is correct that the

*value of*

**limiting****is zero.**

^{x}⁄_{limitlessly large quantity}

But why should one assume that ** x** must be finite? If there is a hypothetical selection mechanism, and it can select a number, there is no sensible reason why it should be limited to only selecting a number a finite number of times. And as noted above, that actually leads to a contradiction. A hypothetical selection mechanism should be able to select infinitely many times, and by allowing

**to be limitlessly large, rather than forcing it to be finite, we resolve the contradiction - if there is no limit on the quantity of selections that the hypothetical mechanism makes, then there is no limit on the number of times it will select any given number. And so we simply get the result that there is no calculable probability value that can be given for the**

*x**“random selecting of a real number”*since there is no real number value that corresponds to the notion of the ratio of a limitlessly large number to a limitlessly large number.

So a simple analysis shows that, unless one considers that the concept of the probability of *“selecting a real number at random”* means in some way the selection of a real number by a human, the idea that one can assign a meaningful probability value to it has no validity whatsoever.

#### Questionable assumptions

The pitfalls of making unwarranted implicit assumptions regarding the notion of *“choosing real numbers at random”* can be demonstrated by a consideration of an old chestnut, the Bertrand Paradox; the analysis can be seen on this site at the Bertrand Paradox.

For a simpler example the pitfalls are nicely shown by the following example (original page at If a real number *x* is chosen at random in… ):

“If a real number *x* is chosen at random in the interval [0,3] and a real number *y* is chosen at random in the interval [0,4], what is the probability that *x < y*?”

The answer is given as:

We are given that 0 ≤ *x* ≤ 3 and 0 ≤ *y* ≤ 4

Thus the region *x-y* when plotted gives you a rectangle with base = 3 units and height = 4 units (as shown in the picture), giving you a total area = 4*3 = 12 square units.

Now, realize that *y = x* is a line that passes through (0,0) and (3,3) and divides the above rectangle into a trapezoid (ABCD) and a triangle. The area *y > x* will belong to the trapezoidal area.

Thus, the area of the trapezoid = 0.5*(4+1)*3 = 15/2

Finally, the required probability = trapezoid area / total area = (15/2)/12 = 12/24 = 5/8.

So what does it mean here when it says *“chosen at random”*?

Can it mean that it is the result for numbers chosen by some perfectly unbiased hypothetical selection method? Does it assume that there are “more” points in one case than the other because the corresponding area in one case (the area ABCD, where *y > x*) is bigger than the other (the area DCE, where *y < x*)? But the quantity of real numbers between 0 and 3 is infinite, and the quantity of real numbers between 0 and 4 is infinite, and the real numbers between 0 and 3 can be put in a one-to-one correspondence with the real numbers between 0 and 4; similarly, the points of the triangle DCE can be put into a one-to-one correspondence with the points of the area ABCD.

So what might the question mean, to choose two real numbers at random? Does it mean that if a human is asked to choose two such numbers at random, the probability is ** ^{5}/_{8}** that he will pick two numbers where

*x < y*?

But is that a plausible response? Alternatively one could reasonably assert that a human choice (assuming that it has some sort of meaning) is equivalent to picking either 0, 1, or 2 for the integer part of the *x*, and adding a randomly chosen non-integer part (a random real number *r*_{1} between 0 and 1, whatever that might mean), and picking either 0, 1, 2 or 3 for the integer part of the *y*, and again adding a randomly chosen real number *r*_{2}. The probability for the choice of the randomly chosen non-integer part is the same for both, but if we work out the probability for choosing 0, 1, or 2 for the integer part of the *x*, and 0, 1, 2 or 3 for the integer part of the *y*, then we can easily see that there are 12 possible combinations of these integer values. And of these combinations 6 are where the integer part of *x* is less than the integer part of *y*, hence 6 combinations are where *x < y* regardless of the non-integer part. Similarly 4 combinations are where *x > y* regardless of the non-integer part. That leaves 2 combinations which have the same value integer part; for the real numbers given by these combinations, the probability that *x < y* is the same as the probability that *x > y*. Hence (ignoring cases where *x = y*) this gives that, on average, 7 out of 12 combinations will give *x < y* so the probability that *x < y* is ** ^{7}/_{12}**, which is less than the value of

**calculated by the other method.**

^{5}/_{8}

So what is the ‘real’ meaning of *“choosing a real number at random”*? Does it have any meaning at all?

On the other hand, one could consider a real world situation and ask, given a line drawn on the ground marked with 0, 1, 2, 3, 4 at equal divisions, given a stone **A** thrown totally randomly onto the line between 0 and 3 and a stone **B** thrown totally randomly on the line between 0 and 4, what are the chances that the numerical value of the landing point of **A** will be less than that of the landing point of **B**?

Some people would say that this represents the most plausible intention for the posed question:

“If a real number *x* is chosen at random in the interval [0,3] and a real number *y* is chosen at random in the interval [0,4], what is the probability that *x < y*?”

So how might we calculate this? One way is to create divisions of the line, and then make the divisions smaller and smaller, calculating for each case the probability that the stone **A** will land in a lower value division than the stone **B**. We can then see what happens as the divisions become smaller and smaller; as they do so, the number of divisions increases. It is reasonable to consider that the limiting case is a good representation of the notion of the stones landing on individual points.

In the following we use *n* to represent the number of divisions per unit interval. So, for the simplest case, with *n* = 1, we have that there are three divisions in the interval [0, 3], and four in the interval [0, 4]. For the next case for *n* = 2, there are six divisions in the interval [0, 3], and eight in the interval [0, 4], viz:

And so on, so that, for example, for *n* = 3, there would be three divisions in each interval [0, 1], [1, 2], [2, 3], [3, 4].

In general, the total number of possible * combinations* of the landing divisions of the two stones is given by the formula:

12*n*^{2}

For example, for the above diagram where *n* = 2, the stone **A** has 6 different possible landing divisions, while the stone **B** has 8 possible landing divisions, so for each landing division for the stone **A**, there are 8 possible landing divisions for the stone **B**, giving a total of 48 possible combinations.

In general, the number of these combinations where the stone **A** lands in a * lower* value division than the stone

**B**is given by the formula:

*n*

^{2}- 3

*n*2

Hence the probability that the stone lands in a lower value division than the stone **B** is given by the formula:

*n*

^{2}- 3

*n*2 · 12

*n*

^{2}

which is the same as:

^{1}⁄

_{n}8

For the first few values of *n* this formula gives the probability values:

for *n* = 1, P = ^{1}⁄_{2},
for *n* = 2, P = ^{9}⁄_{16},
for *n* = 3, P = ^{7}⁄_{12},
for *n* = 4, P = ^{19}⁄_{32},
for *n* = 5, P = ^{3}⁄_{5},
etc.

We can plot these values on a graph:

where we see that the curve approaches the value 0.625. Indeed the limiting value of the expression:

^{1}⁄

_{n}8

as *n* increases is simply ^{5}⁄_{8} - which is 0.625 - since the value of ^{1}⁄_{n} gets smaller and smaller and approaches zero as *n* increases.

This is the same answer as that given by the example question. As has just been shown, this answer of ^{5}⁄_{8} gives an answer that corresponds to the notion of throwing stones randomly onto different areas, or of randomly throwing darts. (Footnote:
Note that a better layout for a real world physical trial one might want to have a layout something like this, which would give a better approximation to randomness for the physical action of throwing.)
But no matter how small the stone is, or how fine the point of the dart is, there is a limit to the precision that can be given to the notion of a landing point - whether the precision is to 5 decimal places or to 100, that limit to the precision means that you have only a finite set of possible values, while there remain infinitely many real numbers not included in that set. Hence a claim that an analysis of the physical situation represents random choices of real numbers would be a claim too far.

While there is a one-to-one correspondence of the points in the interval [0, 3] and the interval [0, 4], one can interpret the answer in terms of a comparison of the relative abundance of regions within the interval, where those regions are small in comparison to the overall interval, and where that relative abundance is 3:4. In the limit case these regions become points, and * for the purposes of the calculation of relative probability*, the limit case is a case where the limit gives an answer in terms of a limiting ratio of the relative abundance of points.

This should not be surprising - after all, if one is asked what is the probability, if a natural number were to be chosen at random, that it is an even number? The obvious answer is ^{1}⁄_{2} , and although we know that the natural numbers can be set in a one-to-one correspondence with the even natural numbers, we also know that for any finite upper limit there are half as many even numbers as all numbers, so it can be seen that the limiting value as the finite upper value increases remains as ^{1}⁄_{2}. And in exactly the same way, for the intervals [0, 3] and [0, 4], for any finite number of divisions, the relative abundance of the intervals is always 3:4, and as the number of divisions increase this is also the limiting value.

#### Models and reality

What is the probability that a person selected at random from the population has a height of exactly 1.9 metres? A mathematical model can be used to calculate probability values for human heights and which uses some form of distribution equation. According to such a model, the probability that a person selected at random has a height of exactly 1.9 metres is zero. Some people seem to think that this is a result of deep significance.

But the actual probability of a person’s height being some value ** h** metres is simply the total number of persons whose height is

**metres divided by the total number of people. For some heights, the value may be zero. But it’s quite obvious that it can’t be zero for every height.**

*h*

The discrepancy is simply the result of the difference between the mathematical model and the actual real world situation. Such mathematical models are used because they give a very good approximation to certain real world situations, and because they are convenient - but they are not perfect reflections of real world situations. A commonly used distribution equation is the Gaussian normal distribution equation, which is commonly represented in graphical form as a bell curve.

The equation of itself says nothing about probability, but it can be applied as a *model* that gives a reasonable approximation to certain real world situations. It is simply an equation which defines a curve; for any given situation, it has two fixed parameters and a free variable which is the *x* in the graph. For the case of human height, the *x* can be used to represent the height, but note that the *y* in the graph does not represent a probability value. The calculation of the integral (the area below the curve) between two height values gives a value that is a good approximation to the real world probability of selecting at random a human whose height lies between those values. The equation is such that the total area under the curve is 1.

However, if you try to obtain the value of the integral (the area below the curve) at a single point, you get the result of zero. It would be a mistake to think that that means that the probability of selecting a person whose height is that particular value is zero. That would be a failure to understand the limitations of applying an idealized mathematical model to a real world situation.

*Other Posts*

Rationale: Every logical argument must be defined in some language, and every language has limitations. Attempting to construct a logical argument while ignoring how the limitations of language might affect that argument is a bizarre approach. The correct acknowledgment of the interactions of logic and language explains almost all of the paradoxes, and resolves almost all of the contradictions, conundrums, and contentious issues in modern philosophy and mathematics.Site MissionPlease see the menu for numerous articles of interest. Please leave a comment or send an email if you are interested in the material on this site.

Interested in supporting this site?You can help by sharing the site with others. You can also donate at

_{}where there are full details.