% TriStick
% Estimates the probability that a triangle can be formed
% from three sticks, each with random length between 0 and 1.
% When that happens, we say that you have "won" a game of
% "TriStick".
clc
% Initialize the running sum and the number of trials...
wins = 0;
N = 1000000;
for n=1:N
% Play the nth game of TriStick
% by picking the three sticks...
a = rand(); b = rand(); c = rand();
if (a