Слайд 2random(...)
random() -> x in the interval [0, 1).

Слайд 3randint(a, b)
Return random integer in range [a, b], including both end points.
![randint(a, b) Return random integer in range [a, b], including both end points.](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1026296/slide-2.jpg)
Слайд 4randrange(start, stop=None, step=1, _int=)
Choose a random item from range(start, stop[, step]).

This fixes the problem with randint() which includes the
endpoint; in Python this is usually not what you want.