Random Number Generators

Random number generator for continuous and discrete distributions

Note

MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.

To convert a MuPAD notebook file to a MATLAB live script file, see convertMuPADNotebook. MATLAB live scripts support most MuPAD functionality, although there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

MuPAD Functions

frandomGenerate random floating-point numbers
randomGenerate random integer numbers
stats::betaRandomGenerate a random number generator for beta deviates
stats::binomialRandomGenerate a random number generator for binomial deviates
stats::cauchyRandomGenerate a random number generator for Cauchy deviates
stats::chisquareRandomGenerate a random number generator for chi-square deviates
stats::empiricalRandomGenerate a random generator for uniformly distributed elements of a data sample
stats::erlangRandomGenerate a random number generator for Erlang deviates
stats::exponentialRandomGenerate a random number generator for exponential deviates
stats::fRandomGenerate a random number generator for Fisher's f-deviates (fratio deviates)
stats::finiteRandomGenerate a random generator for elements of a finite sample space
stats::gammaRandomGenerate a random number generator for gamma deviates
stats::geometricRandomGenerate a random number generator for geometric deviates
stats::hypergeometricRandomGenerate a random number generator for hypergeometric deviates
stats::logisticRandomGenerate a random number generator for logistic deviates
stats::lognormalRandomGenerate a random number generator for log-normal deviates
stats::normalRandomGenerate a random number generator for normal deviates
stats::poissonRandomGenerate a random number generator for Poisson deviates
stats::tRandomGenerate a random number generator for Student deviates (t-deviates)
stats::uniformRandomGenerate a random number generator for uniformly continuous deviates
stats::weibullRandomGenerate a random number generator for Weibull deviates

Topics

Supported Distributions

MuPAD supports standard continuous and discrete distributions.