The Discrete Uniform Distribution
ddunif(x, min = 0, max = 1)
pdunif(q, min = 0, max = 1)
qdunif(p, min = 0, max = 1)
rdunif(n, min = 0L, max = 1)
vector of (non-negative integer) quantiles
minimum value of distribution (integer)
maximum value of distribution (integer)
vector of quantiles
vector of probabilities
number of random values to return
ddunif gives the density, pdunif gives the distribution function, qdunif gives the quantile function, rdunif generates random deviates
ddunif(0:1)
#> [1] 0.5 0.5
pdunif(1)
#> [1] 1
qdunif(.5)
#> [1] 1
rdunif(10)
#> [1] 0 0 1 0 0 1 0 0 1 1