unidrnd
Random numbers from discrete uniform distribution
Description
generates an array of random numbers from the discrete uniform distribution with the scalar
maximum value r = unidrnd(n,sz1,...,szN)n, where sz1,...,szN indicates the
size of each dimension.
Examples
Input Arguments
Output Arguments
Alternative Functionality
unidrndis a function specific to discrete uniform distribution. Statistics and Machine Learning Toolbox™ also offers the generic functionrandom, which supports various probability distributions. To userandom, specify the probability distribution name and its parameters. Note that the distribution-specific functionunidrndis faster than the generic functionrandom.To generate random numbers interactively, use
randtool, a user interface for random number generation.
Extended Capabilities
Version History
Introduced before R2006a