Learn R Programming

purrr (version 0.1.0)

rdunif: Generate random samples from a discrete uniform distribution

Description

Generate random samples from a discrete uniform distribution

Usage

rdunif(n, b, a = 1)

Arguments

n
Number of samples to draw.
a,b
Range of the distribution (inclusive).

Examples

Run this code
table(rdunif(1e3, 10))

Run the code above in your browser using DataLab