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