subject

4. sharedbirthdays: the birthday problem is a question where most people's intuition is proved incorrect by mathematics. the problem is: given a group of n people, how large must n be so that there is a 50% chance that at least 2 of the n people have the same birthday? write a method with two parameters, the number of people in a group and the number of days in the year. the method will generate random birthdays for the number of people and then determine how many pairs of people have the same birthday. you don't have to generate actual days of the year for the birthdays. you can simply use ints. here are two ways to generate random ints in java. one uses an object of type random and the other uses the random method from the math class.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
You need a reliable network for about twenty-five computers that will be distributed across a large building. it is important that the network be relatively cheap. which topology should you use?
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
Which option allows you to view slides on the full computer screen?
Answers: 1
question
Computers and Technology, 24.06.2019 05:50
What all vehicles has tesla inc. created over the years
Answers: 3
question
Computers and Technology, 24.06.2019 06:30
For which utilities, if any, does the landlord pay?
Answers: 2
You know the right answer?
4. sharedbirthdays: the birthday problem is a question where most people's intuition is proved inco...
Questions
question
Mathematics, 12.03.2020 02:57
Questions on the website: 13722363