+ 1

how do you write a code that calculates the probability of everyone wearimg blue on monday?

please answer!!!

12th Jul 2019, 6:32 PM
Sarah
Sarah - avatar
2 Answers
+ 3
This question doesn't give you too much information. But, let's say, there are 30 people. They each have 10 clothes, which they pick one randomly. They have 1/10 chance to do so. There are 30 people, so the chance of everyone wearing blue is (1/10)^30. The point I'm trying to make, is to actually do your homework and not just give us an abstract idea of what he task is to do it for you. https://www.sololearn.com/discuss/1316935/?ref=app
12th Jul 2019, 7:14 PM
Airree
Airree - avatar
+ 1
thanks!
12th Jul 2019, 9:59 PM
Sarah
Sarah - avatar