BBy Bot
Jun 09'24

Exercise

Write a program to add random numbers chosen from [math][0,1][/math] until the first time the sum is greater than one. Have your program repeat this experiment a number of times to estimate the expected number of selections necessary in order that the sum of the chosen numbers first exceeds 1. On the basis of your experiments, what is your estimate for this number?