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 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!