run-if vs. r-unif
In R, there is a function called
At the beginning, I thought it were about running some code under some condition like the if-else statement.
runif is to generate random sample from uniform distribution.
Similarly, there is
rbeta, etc. for other distribution types.