The example calculates the number of possibilities with the
same figures as in the previous example, but now with regard
The routine calculates the probability of drawing exactly k
elements with the mark X of total n, where the probability of
X itself is p. Independent trials (with replacement).
: n p :
kX'es of n
The probability of drawing 3 elements with the mark X when
X has the probability of 0.6 is calculated. The number of in-
dependent trials is 10. p > 1 gives an error message.
The example may be the production of glasses where the
probability of first assortment is 0.6. If 20 glasses are produ-