Слайд 2random(...)
random() -> x in the interval [0, 1).
Слайд 3randint(a, b)
Return random integer in range [a, b], including both end points.
Слайд 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.