There is a random number generator that obeys the standard normal distribution $X \sim N(\mu,\sigma^2)$, and then calculates the sum of the numbers generated until the sum is greater than $r$.
Specifically, it means to generate a random number, and then stop if it exceeds $r$, otherwise generate another random number. Sum all generated random numbers, stop if exceeds $r$, otherwise continue
How to find the expectation of the stop time $\mathbb{E}_r[X]$.
Similar to this question