Learn R Programming

Rfast (version 1.3)

Uniform distribution on the interval from min to max: Uniform distribution on the interval from min to max

Description

Uniform distribution on the interval from min to max.

Usage

Runif(n,mn,mx)

Arguments

n
The size of the numbers you want for return.
mn
Min number.
mx
Max number.

Value

A row vector which is been initialized with uniform numbers.

Details

The function is written in C++ and this is why it is very fast.

See Also

Rnorm,Rpois

Examples

Run this code
Runif(1000,1,10)

Run the code above in your browser using DataLab