Randomness as an Algorithm
In short: a fixed pivot rule has some input that defeats it, and a chart that arrives already sorted is exactly that input for "always pick the last value". Picking the pivot at random removes the input from the equation: no input is bad any more, only bad luck is, and the chance of real bad luck shrinks to nothing as n grows. The same idea — remove the fixed rule an adversary (or an unlucky dataset) could aim at — also underlies a fair shuffle, reservoir sampling and Python's own hash randomisation.

Tunebox's weekly chart arrives already sorted by last week's position, and a lot of it barely moves. In section 3 you saw what that does to a quick sort that always takes the last value as its pivot: every pivot is the largest value left, every partition peels off one item, and the sort does comparisons. On a chart of 64 tracks that is 2,016 comparisons where about 360 should do.
You could pick a cleverer fixed pivot, such as the middle, but any fixed rule has some input that defeats it, and somebody's data will be that input. This lesson takes the rule away from the input: let a random number pick the pivot. Then no input is bad. Only bad luck is, and you can measure exactly how unlikely it is.
One line changes
Here is your section 3 quick sort with its pivot choice pulled out into a function.
It runs on a sorted chart of 10 tracks. The seeded generator makes the "random"
choices the same on every run, so you can compare. Edit choose_pivot: try
return hi, the old rule, and watch the comparison count jump.
Your quick sort with a random pivot on a chart that is already sorted. The pivots land near the middle, so the ranges halve.
The only change from section 3 is two lines: pick an index at random, and swap that value into the pivot slot before partitioning. Everything else, including the correctness argument, is untouched. Whatever the random choices are, the output is sorted:
import random
rng = random.Random(2024)
chart = ["Aria", "Blue", "Cove", "Dawn", "Echo"]
shuffled = list(chart)
for i in range(len(shuffled) - 1, 0, -1):
j = rng.randint(0, i)
shuffled[i], shuffled[j] = shuffled[j], shuffled[i]
print(sorted(shuffled) == chart)