News for hackers. Stuff that matters.
Re:How many draws of a random number [0,1] are needed to sum... by Bryan22 on Sunday February 24, 2013 @02:44PM (#5275604)
Everyone beat me to the punch, but I made a something a little different than you guys, I stored the count of trys to reach 1 and the frequency of the count in a multidimensional array to see what amount of tries got to the sum most frequently. i ran 100,000 tries at a time and ran it about 10 times.

2 was most frequent count every time.

Re:How many draws of a random number [0,1] are needed to sum... by Bryan22 on Monday February 25, 2013 @12:10AM (#5277410)
Considering [0-1] inclusive, these are the percentages after a million runs;

1- 1%

2- 49%

3- 33%

4- 12%

5- 3%

6- .7%

7- .1%

8- .02%

it doesn't add up to 100% because of rounding, but you get the picture.