in which the third call to runif gives a different number than the first two, which was expected. This only works in a new session. I wanted to illustrate it using reprex::reprex() but here is the output.
From this line of code, ggplot2 only picks a random tip if the R session is interactive. From reprex::reprex(x = interactive()), you will see that reprex does not run an interactive session.