News for hackers. Stuff that matters.
Re:How many draws of a random number [0,1] are needed to sum... by ced on Sunday February 24, 2013 @02:07PM (#5275424)
I confirmed it for fun. Got 2.746 over 10000 trials. Close enough.

  (average (map-n (fn ()
		    (1+ (position-if (let1 x 0
				       (fni (< 1.0 (incf x (random 1.0)))))
				     (range 100))))
		  10000))

There are no comments on this comment yet.