unidinv
Inverse of the discrete uniform cumulative distribution function (iCDF).
For each element of p, compute the quantile (the inverse of the CDF) at p of the discrete uniform distribution which assumes the integer values 1–df with equal probability. The size of p is the common size of x and df. A scalar input functions as a constant matrix of the same size as the other inputs.
See also: unidcdf, unidpdf, unidrnd, unidstat
Source Code: unidinv