Question: IN JAVA: Using Monte Carlo Simulation, find how many hands need to be dealt in order to gain a hand of 3 of one card.
IN JAVA: Using Monte Carlo Simulation, find how many hands need to be dealt in order to gain a hand of 3 of one card.
For example your hand might 5 (clubs), 6(hearts) , 6(diamonds), 6(spades), Queen(hearts). This hand has 3 of a kind( or 3 of the same number ) which is 6 in this case.
Do 1000 simulations and find the average number of hands that needed to be dealt before finding 3 of a kind. Do not use Arrays.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
