Question: Python Program Three balls are tossed randomly into 5 cans. (Note each can is able to hold from 0 to 3 balls). The probability that
Python Program
Three balls are tossed randomly into 5 cans. (Note each can is able to hold from 0 to 3 balls).
The probability that they land in different cans is : P = 5!/(5 - 3)!5^3 = 0.48
Write a program in Python that solves the problem above using a pseudo random number generator. Do not use the random number generator provided in the Python library.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
