An unexpected result involving sums of random numbers
|
02-28-2023, 06:41 PM
Post: #1
|
|||
|
|||
An unexpected result involving sums of random numbers
How many random numbers in the interval [0, 1) are required to add up to 1 or higher, in average?
The following HP-42S and HP-15C programs might give an answer to this question in under one minute on the physical calculators (with some cheating due to the choice of seeds and number of results equal or greater than one), or in reasonable on Free42 and other simulators with a large number of results, regardless of the seeds. HP-42S: Code:
6 SEED 252 XEQ “X” -> ______________ (55.5 seconds on the real calculator) Code:
67 SEED 252 XEQ “X” -> ______________ (63 seconds on the real calculator) HP-15C: Code:
6 STO RAN# 32 f A -> ______________ (55 seconds on the real HP-15C) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 9 Guest(s)