Each round a uniformly distributed random number is picked between 0 and 1. The game ends when the sum of the random numbers is greater than 1. Find the average number of rounds the game will end in. Note: Use 100,000 trials of the game.
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers14
Suggested Problems
-
How to find the position of an element in a vector without using the find function
2822 Solvers
-
287 Solvers
-
Project Euler: Problem 1, Multiples of 3 and 5
3733 Solvers
-
Return the first and last characters of a character array
12431 Solvers
-
Remove entire row and column in the matrix containing the input values
576 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!