Mean for the discrete uniform distribution, returned as a numeric scalar or an array
of numeric scalars. m is the same size as n.
Each element in m is the mean of the discrete uniform distribution
specified by the corresponding element in n.
The mean of the discrete uniform distribution with parameter n is (n + 1)/2.
Variance for the discrete uniform distribution, returned as a numeric scalar or an
array of numeric scalars. v is the same size as
n. Each element in v is the variance of the
discrete uniform distribution specified by the corresponding element in
n.
The variance of the discrete uniform distribution with parameter
n is (n2 – 1)/12.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.