While studying Random Numbers, I have come across brownian motion. In the text I am using (Numerical Analysis by Sauer); there is an example (chapter 9, example 9.9) where the author illustrates how a monte carlo simulation is used to estimate the escape time for a random walk escaping the interval [-3,6].
The expected value is ab = 18 and the author provides the following table:-
$$ \begin{array}{c} \text{n} & \text{average escape time} & \text{error}\\ 100 & 18.84 & 0.84 \\ 200 & 17.47 & 0.53 \\ 400 & 19.64 & 1.64 \\ 800 & 18.53 & 0.53 \\ 1600 & 18.27 & 0.27 \\ 3200 & 18.16 & 0.16 \\ 6400 & 18.05 & 0.05 \end{array} $$
Am totally lost as to how the average escape times are calculated given monte carlo simulaion is used. Do I use an LCG? Can someone help advise? Please note that the previous example arrives at top exits and probabilities and am completely lost on how the book does it!
