Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rdunif

Generate random sample from a discrete uniform distribution


Description

Generate random sample 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

table(rdunif(1e3, 10))
table(rdunif(1e3, 10, -5))

purrr

Functional Programming Tools

v0.3.4
GPL-3 | file LICENSE
Authors
Lionel Henry [aut, cre], Hadley Wickham [aut], RStudio [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.