Coding challenge

Write some code that picks 10,000 random triples (a,b,c) where a, b, and c are uniformly distributed between 0 and 1, as in a=math.random(), etc. Estimate the probability of getting 3 numbers that are the lengths of a triangle. Hint: It might help to read the Wikipedia page the the "Triangle Inequality." (From Engel, p. 233.)

Type your code here:

Lua reference

See your results here: