Write a Monte Carlo simulation to estimate the probability that if a 10 inch stick is broken at random in two places, the 3 pieces can form a triangle. Assume that the two locations where the stick is broken are equally likely anywhere on the stick. Use the fact that in a triangle, the sum of the lengths of any two sides is greater than the length of the third side. Use 100000 cases in your simulation.
Introduction to Matlab version 3.