Generate random number drawn from ProbDist object
Syntax
Y = random(PD)
Y = random(PD, N)
Y = random(PD, N, M,
...)
Description
Y = random(PD) generates
a random number drawn from the distribution specified by PD,
a ProbDist object.
Y = random(PD, N) generates
an N-by-N array
of random numbers drawn from the distribution specified by PD,
a ProbDist object.
Y = random(PD, N, M,
...) generates an N-by-M-by... array
of random numbers drawn from the distribution specified by PD,
a ProbDist object.
Inputs
| PD | An object of the class ProbDistUnivParam or ProbDistUnivKernel. |
| N | A positive integer. |
| M | A positive integer. |
Outputs
| Y | A random number drawn from the distribution specified
by PD. |
See Also
 | random (piecewisedistribution) | | randsample |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit