2.1.24.8 Random Number Generators


Functions

Name Brief Example
bernrnd Generates an array of random integers from a bernoulli distribution Examples
betarnd Generates an array of pseudo-random real numbers from the beta distribution Examples
binornd Generates an array of random integers from a binomial distribution Examples
caurnd Generates an array of random numbers from a Cauchy distribution Examples
chi2rnd Generates an array of random integers from a chi-square (x²) distribution Examples
disrnd Generates an array of random integers from a general discrete distribution Examples
disrnd2 Use disrnd to generate random numbers to reorder given array Examples
exprnd Generates an array of random numbers from an exponential distribution Examples
frnd Generates an array of random numbers from an F-distribution Examples
gamrnd Generates an array of random numbers from a \(\Gamma\) distribution Examples
geornd Generates an array of random integers from a geometric distribution Examples
hygernd Generates an array of random integers from a hypergeometric distribution Examples
laprnd Generates an array of random numbers from a laplace distribution Examples
levrnd Generates an array of random numbers from a largest extreme value distribution Examples
lgsrnd Generates an array of random numbers from a logistic distribution Examples
llgsrnd Generates an array of random numbers from a loglogistic distribution Examples
lognrnd Generates an array of random numbers from a lognormal distribution Examples
mvnrnd Generates an array of random numbers from a multivariate Normal distribution Examples
ocmath_is_matrix_positive_definite Return whether matrix is positive definite Examples
nbinrnd Generates an array of random integers from a negative binomial distribution Examples
normrnd Generates an array of random numbers from a Normal distribution Examples
permrnd Pseudo-random permutation of an integer vector Examples
poissrnd Generates an array of random integers from a Poisson distribution Examples
sevrnd Generates an array of random numbers from a smallest extreme value distribution Examples
trirnd Generates an array of random numbers from a triangular distribution Examples
trnd Generates an array of random numbers from a Student's t-distribution Examples
unidrnd Generates an array of random integers from a uniform distribution Examples
unifrnd Generates an array of random numbers from a uniform distribution Examples
wblrnd Generates an array of random numbers from a Weibull distribution Examples