Steven Sanderson digs into the uniform distribution:
Randomness is an essential part of many statistical and machine learning tasks. In R, there are a number of functions that can be used to generate random numbers, but the
runif()
function is the most commonly used.
Something mildly embarrassing for me is that it took me a while to figure out why they call the command runif()
. That’s because, at first, I didn’t pronounce it r unif
but rather run if
.
In reality, *unif()
means “uniform distribution” and r
stands for “random number.” There are several other functions based on the uniform distribution and Steven looks at those as well in this post.