(Monte Carlo simulation) A square is divided into four smaller regions as shown below in (a). If you throw a dart into the square 1000000 times, what is the probability for a dart to fall into an odd-numbered region? Write a program to simulate the process and display the result.
(Hint: Place the center of the square in the center of a coordinate system shown in (b). Randomly generate a point in the square and count the 'nimbi times a point falls into an odd-numbered region.)
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.