Похожие презентации:
Random
1.
randomrandom() -> x in the interval [0, 1).
2.
randintReturn random integer in range [a, b], including both end points.
3.
uniformGet a random number in the range [a, b) or [a, b] depending on rounding.
The mean (expected value) and variance of the random variable
are:
E[X] = (a + b) / 2
Var[X] = (b - a) ** 2 / 12
4.
choiceChoose a random element from a non-empty sequence.
5.
shuffleShuffle list x in place, and return None.
Программирование