SIMULATION MODELING AND ANALYSIS
3. In Python create a code for following: Recall that three line segments can form a triangle if the
triangular inequalities hold for these three line segments. Use simulation to estimate the
probability that three line segments (continuous) uniformly distributed over the interval [0, 3]
form a triangle. Please, perform the simulation for n=20, 50, 100, 500, 1000 times and then
estimate the probability for each case.