The folks at Data Sharkie walk us through random number generation in R:
Why is random numbers generation important and where is it used?
Random numbers generations have application in various fields like statistical sampling, simulation, test designs, and so on. Generally, when a data scientist is in need of a set of random numbers, they will have in mind
R programming language allows users to generate random distributed numbers with a set of built-in functions: runif(), rnorm(), rbinom().
Read on to generate random numbers across two separate distributions.