Random Number Generators

 

Functions

Name Brief Example
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 Command returned with error code 1

(D:/Temp/System/43e83895f7ed89c7cc38337faacb9484.653f7268226d49.08070355/doc.te x LaTeX2e <2011/06/27> Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga lician, german, german-x-2012-05-30, greek, gujarati, hindi, hungarian, iceland ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,

lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n

german-x-2012-05-30, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl ishmax, welsh, loaded. ("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls" Document Class: article 2007/10/19 v1.4h Standard LaTeX document class ("C:\Program Files\MiKTeX 2.9\tex\latex\base\fleqn.clo") ("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo")) ("C:\Program Files\MiKTeX 2.9\tex\latex\base\inputenc.sty" ("C:\Program Files\MiKTeX 2.9\tex\latex\base\utf8.def" ("C:\Program Files\MiKTeX 2.9\tex\latex\base\t1enc.dfu") ("C:\Program Files\MiKTeX 2.9\tex\latex\base\ot1enc.dfu") ("C:\Program Files\MiKTeX 2.9\tex\latex\base\omsenc.dfu"))) ("C:\Program Files\MiKTeX 2.9\tex\latex\amsmath\amsmath.sty" For additional information on amsmath, use the `?' option. ("C:\Program Files\MiKTeX 2.9\tex\latex\amsmath\amstext.sty" ("C:\Program Files\MiKTeX 2.9\tex\latex\amsmath\amsgen.sty")) ("C:\Program Files\MiKTeX 2.9\tex\latex\amsmath\amsbsy.sty") ("C:\Program Files\MiKTeX 2.9\tex\latex\amsmath\amsopn.sty")) ("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\amsfonts.sty") ("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\amssymb.sty") No file doc.aux. ("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\umsa.fd") ("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\umsb.fd") ! Undefined control sequence. <recently read> \Chi

l.9 $\Chi

        $

[1] (D:\Temp\System\43e83895f7ed89c7cc38337faacb9484.653f7268226d49.08070355\doc.au x) ) (see the transcript file for additional information) Output written on D:/Temp/System/43e83895f7ed89c7cc38337faacb9484.653f7268226d4 9.08070355/doc.dvi (1 page, 152 bytes). Transcript written on D:/Temp/System/43e83895f7ed89c7cc38337faacb9484.653f72682 26d49.08070355/doc.log. 2 distribution

Examples
disrnd Generates an array of random integers from a general discrete distribution 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
lgsrnd Generates an array of random numbers from a logistic 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
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
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