pub fn prob_of_longer_walk_in_the_kitchen() -> (u64, u64)
Expand description

Find the probability that the random walk on the kitchen floor is strictly more than 20 steps.

This is the first attempt to solve the second part of the question. We discovered that 20 steps is the expected length of a walk on the football, so we want want to know what proportion of walks on the kitchen floor last longer than 20 steps.

We will perform a large number of runs, counting how many reach 21 steps without terminating.

With increasing runs, we seem to be converging towards about 0.448.