Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > b38d2da330d1936e5ab1307c039c4941 > files > 428

octave-doc-3.6.4-3.mga4.noarch.rpm

<html lang="en">
<head>
<title>Random Number Generation - GNU Octave</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="GNU Octave">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Statistics.html#Statistics" title="Statistics">
<link rel="prev" href="Tests.html#Tests" title="Tests">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="Random-Number-Generation"></a>
<p>
Previous:&nbsp;<a rel="previous" accesskey="p" href="Tests.html#Tests">Tests</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Statistics.html#Statistics">Statistics</a>
<hr>
</div>

<h3 class="section">26.7 Random Number Generation</h3>

<p>Octave can generate random numbers from a large number of distributions. 
The random number generators are based on the random number generators
described in <a href="Special-Utility-Matrices.html#Special-Utility-Matrices">Special Utility Matrices</a>. 
<!-- Should rand, randn, rande, randp, and randg be moved to here? -->

   <p>The following table summarizes the available random number generators
(in alphabetical order).

   <p><table summary=""><tr align="left"><th valign="top" width="40%">Distribution                  </th><th valign="top" width="30%">Function
<br></th></tr><tr align="left"><td valign="top" width="40%">Beta Distribution                 </td><td valign="top" width="30%"><code>betarnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Binomial Distribution             </td><td valign="top" width="30%"><code>binornd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Cauchy Distribution               </td><td valign="top" width="30%"><code>cauchy_rnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Chi-Square Distribution           </td><td valign="top" width="30%"><code>chi2rnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Univariate Discrete Distribution  </td><td valign="top" width="30%"><code>discrete_rnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Empirical Distribution            </td><td valign="top" width="30%"><code>empirical_rnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Exponential Distribution          </td><td valign="top" width="30%"><code>exprnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">F Distribution                    </td><td valign="top" width="30%"><code>frnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Gamma Distribution                </td><td valign="top" width="30%"><code>gamrnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Geometric Distribution            </td><td valign="top" width="30%"><code>geornd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Hypergeometric Distribution       </td><td valign="top" width="30%"><code>hygernd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Laplace Distribution              </td><td valign="top" width="30%"><code>laplace_rnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Logistic Distribution             </td><td valign="top" width="30%"><code>logistic_rnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Log-Normal Distribution           </td><td valign="top" width="30%"><code>lognrnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Pascal Distribution               </td><td valign="top" width="30%"><code>nbinrnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Univariate Normal Distribution    </td><td valign="top" width="30%"><code>normrnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Poisson Distribution              </td><td valign="top" width="30%"><code>poissrnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Standard Normal Distribution      </td><td valign="top" width="30%"><code>stdnormal_rnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">t (Student) Distribution          </td><td valign="top" width="30%"><code>trnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Univariate Discrete Distribution  </td><td valign="top" width="30%"><code>unidrnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Uniform Distribution              </td><td valign="top" width="30%"><code>unifrnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Weibull Distribution              </td><td valign="top" width="30%"><code>wblrnd</code>
<br></td></tr><tr align="left"><td valign="top" width="40%">Wiener Process                    </td><td valign="top" width="30%"><code>wienrnd</code>
   <br></td></tr></table>

<!-- betarnd scripts/statistics/distributions/betarnd.m -->
   <p><a name="doc_002dbetarnd"></a>

<div class="defun">
&mdash; Function File:  <b>betarnd</b> (<var>a, b</var>)<var><a name="index-betarnd-2593"></a></var><br>
&mdash; Function File:  <b>betarnd</b> (<var>a, b, r</var>)<var><a name="index-betarnd-2594"></a></var><br>
&mdash; Function File:  <b>betarnd</b> (<var>a, b, r, c, <small class="dots">...</small></var>)<var><a name="index-betarnd-2595"></a></var><br>
&mdash; Function File:  <b>betarnd</b> (<var>a, b, </var>[<var>sz</var>])<var><a name="index-betarnd-2596"></a></var><br>
<blockquote><p>Return a matrix of random samples from the Beta distribution with parameters
<var>a</var> and <var>b</var>.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the common size of
<var>a</var> and <var>b</var>. 
</p></blockquote></div>

<!-- binornd scripts/statistics/distributions/binornd.m -->
   <p><a name="doc_002dbinornd"></a>

<div class="defun">
&mdash; Function File:  <b>binornd</b> (<var>n, p</var>)<var><a name="index-binornd-2597"></a></var><br>
&mdash; Function File:  <b>binornd</b> (<var>n, p, r</var>)<var><a name="index-binornd-2598"></a></var><br>
&mdash; Function File:  <b>binornd</b> (<var>n, p, r, c, <small class="dots">...</small></var>)<var><a name="index-binornd-2599"></a></var><br>
&mdash; Function File:  <b>binornd</b> (<var>n, p, </var>[<var>sz</var>])<var><a name="index-binornd-2600"></a></var><br>
<blockquote><p>Return a matrix of random samples from the binomial distribution with
parameters <var>n</var> and <var>p</var>, where <var>n</var> is the number of trials
and <var>p</var> is the probability of success.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the common size of
<var>n</var> and <var>p</var>. 
</p></blockquote></div>

<!-- cauchy_rnd scripts/statistics/distributions/cauchy_rnd.m -->
   <p><a name="doc_002dcauchy_005frnd"></a>

<div class="defun">
&mdash; Function File:  <b>cauchy_rnd</b> (<var>location, scale</var>)<var><a name="index-cauchy_005frnd-2601"></a></var><br>
&mdash; Function File:  <b>cauchy_rnd</b> (<var>location, scale, r</var>)<var><a name="index-cauchy_005frnd-2602"></a></var><br>
&mdash; Function File:  <b>cauchy_rnd</b> (<var>location, scale, r, c, <small class="dots">...</small></var>)<var><a name="index-cauchy_005frnd-2603"></a></var><br>
&mdash; Function File:  <b>cauchy_rnd</b> (<var>location, scale, </var>[<var>sz</var>])<var><a name="index-cauchy_005frnd-2604"></a></var><br>
<blockquote><p>Return a matrix of random samples from the Cauchy distribution with
parameters <var>location</var> and <var>scale</var>.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the common size of
<var>location</var> and <var>scale</var>. 
</p></blockquote></div>

<!-- chi2rnd scripts/statistics/distributions/chi2rnd.m -->
   <p><a name="doc_002dchi2rnd"></a>

<div class="defun">
&mdash; Function File:  <b>chi2rnd</b> (<var>n</var>)<var><a name="index-chi2rnd-2605"></a></var><br>
&mdash; Function File:  <b>chi2rnd</b> (<var>n, r</var>)<var><a name="index-chi2rnd-2606"></a></var><br>
&mdash; Function File:  <b>chi2rnd</b> (<var>n, r, c, <small class="dots">...</small></var>)<var><a name="index-chi2rnd-2607"></a></var><br>
&mdash; Function File:  <b>chi2rnd</b> (<var>n, </var>[<var>sz</var>])<var><a name="index-chi2rnd-2608"></a></var><br>
<blockquote><p>Return a matrix of random samples from the chi-square distribution with
<var>n</var> degrees of freedom.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the size of
<var>n</var>. 
</p></blockquote></div>

<!-- discrete_rnd scripts/statistics/distributions/discrete_rnd.m -->
   <p><a name="doc_002ddiscrete_005frnd"></a>

<div class="defun">
&mdash; Function File:  <b>discrete_rnd</b> (<var>v, p</var>)<var><a name="index-discrete_005frnd-2609"></a></var><br>
&mdash; Function File:  <b>discrete_rnd</b> (<var>v, p, r</var>)<var><a name="index-discrete_005frnd-2610"></a></var><br>
&mdash; Function File:  <b>discrete_rnd</b> (<var>v, p, r, c, <small class="dots">...</small></var>)<var><a name="index-discrete_005frnd-2611"></a></var><br>
&mdash; Function File:  <b>discrete_rnd</b> (<var>v, p, </var>[<var>sz</var>])<var><a name="index-discrete_005frnd-2612"></a></var><br>
<blockquote><p>Return a matrix of random samples from the univariate distribution which
assumes the values in <var>v</var> with probabilities <var>p</var>.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the common size of
<var>v</var> and <var>p</var>. 
</p></blockquote></div>

<!-- empirical_rnd scripts/statistics/distributions/empirical_rnd.m -->
   <p><a name="doc_002dempirical_005frnd"></a>

<div class="defun">
&mdash; Function File:  <b>empirical_rnd</b> (<var>data</var>)<var><a name="index-empirical_005frnd-2613"></a></var><br>
&mdash; Function File:  <b>empirical_rnd</b> (<var>data, r</var>)<var><a name="index-empirical_005frnd-2614"></a></var><br>
&mdash; Function File:  <b>empirical_rnd</b> (<var>data, r, c, <small class="dots">...</small></var>)<var><a name="index-empirical_005frnd-2615"></a></var><br>
&mdash; Function File:  <b>empirical_rnd</b> (<var>data, </var>[<var>sz</var>])<var><a name="index-empirical_005frnd-2616"></a></var><br>
<blockquote><p>Return a matrix of random samples from the empirical distribution obtained
from the univariate sample <var>data</var>.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is a random ordering
of the sample <var>data</var>. 
</p></blockquote></div>

<!-- exprnd scripts/statistics/distributions/exprnd.m -->
   <p><a name="doc_002dexprnd"></a>

<div class="defun">
&mdash; Function File:  <b>exprnd</b> (<var>lambda</var>)<var><a name="index-exprnd-2617"></a></var><br>
&mdash; Function File:  <b>exprnd</b> (<var>lambda, r</var>)<var><a name="index-exprnd-2618"></a></var><br>
&mdash; Function File:  <b>exprnd</b> (<var>lambda, r, c, <small class="dots">...</small></var>)<var><a name="index-exprnd-2619"></a></var><br>
&mdash; Function File:  <b>exprnd</b> (<var>lambda, </var>[<var>sz</var>])<var><a name="index-exprnd-2620"></a></var><br>
<blockquote><p>Return a matrix of random samples from the exponential distribution with
mean <var>lambda</var>.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the size of
<var>lambda</var>. 
</p></blockquote></div>

<!-- frnd scripts/statistics/distributions/frnd.m -->
   <p><a name="doc_002dfrnd"></a>

<div class="defun">
&mdash; Function File:  <b>frnd</b> (<var>m, n</var>)<var><a name="index-frnd-2621"></a></var><br>
&mdash; Function File:  <b>frnd</b> (<var>m, n, r</var>)<var><a name="index-frnd-2622"></a></var><br>
&mdash; Function File:  <b>frnd</b> (<var>m, n, r, c, <small class="dots">...</small></var>)<var><a name="index-frnd-2623"></a></var><br>
&mdash; Function File:  <b>frnd</b> (<var>m, n, </var>[<var>sz</var>])<var><a name="index-frnd-2624"></a></var><br>
<blockquote><p>Return a matrix of random samples from the F distribution with
<var>m</var> and <var>n</var> degrees of freedom.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the common size of
<var>m</var> and <var>n</var>. 
</p></blockquote></div>

<!-- gamrnd scripts/statistics/distributions/gamrnd.m -->
   <p><a name="doc_002dgamrnd"></a>

<div class="defun">
&mdash; Function File:  <b>gamrnd</b> (<var>a, b</var>)<var><a name="index-gamrnd-2625"></a></var><br>
&mdash; Function File:  <b>gamrnd</b> (<var>a, b, r</var>)<var><a name="index-gamrnd-2626"></a></var><br>
&mdash; Function File:  <b>gamrnd</b> (<var>a, b, r, c, <small class="dots">...</small></var>)<var><a name="index-gamrnd-2627"></a></var><br>
&mdash; Function File:  <b>gamrnd</b> (<var>a, b, </var>[<var>sz</var>])<var><a name="index-gamrnd-2628"></a></var><br>
<blockquote><p>Return a matrix of random samples from the Gamma distribution with
shape parameter <var>a</var> and scale <var>b</var>.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the common size of
<var>a</var> and <var>b</var>. 
</p></blockquote></div>

<!-- geornd scripts/statistics/distributions/geornd.m -->
   <p><a name="doc_002dgeornd"></a>

<div class="defun">
&mdash; Function File:  <b>geornd</b> (<var>p</var>)<var><a name="index-geornd-2629"></a></var><br>
&mdash; Function File:  <b>geornd</b> (<var>p, r</var>)<var><a name="index-geornd-2630"></a></var><br>
&mdash; Function File:  <b>geornd</b> (<var>p, r, c, <small class="dots">...</small></var>)<var><a name="index-geornd-2631"></a></var><br>
&mdash; Function File:  <b>geornd</b> (<var>p, </var>[<var>sz</var>])<var><a name="index-geornd-2632"></a></var><br>
<blockquote><p>Return a matrix of random samples from the geometric distribution with
parameter <var>p</var>.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the size of
<var>p</var>. 
</p></blockquote></div>

<!-- hygernd scripts/statistics/distributions/hygernd.m -->
   <p><a name="doc_002dhygernd"></a>

<div class="defun">
&mdash; Function File:  <b>hygernd</b> (<var>t, m, n</var>)<var><a name="index-hygernd-2633"></a></var><br>
&mdash; Function File:  <b>hygernd</b> (<var>t, m, n, r</var>)<var><a name="index-hygernd-2634"></a></var><br>
&mdash; Function File:  <b>hygernd</b> (<var>t, m, n, r, c, <small class="dots">...</small></var>)<var><a name="index-hygernd-2635"></a></var><br>
&mdash; Function File:  <b>hygernd</b> (<var>t, m, n, </var>[<var>sz</var>])<var><a name="index-hygernd-2636"></a></var><br>
<blockquote><p>Return a matrix of random samples from the hypergeometric distribution
with parameters <var>t</var>, <var>m</var>, and <var>n</var>.

        <p>The parameters <var>t</var>, <var>m</var>, and <var>n</var> must be positive integers
with <var>m</var> and <var>n</var> not greater than <var>t</var>.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the common size of
<var>t</var>, <var>m</var>, and <var>n</var>. 
</p></blockquote></div>

<!-- laplace_rnd scripts/statistics/distributions/laplace_rnd.m -->
   <p><a name="doc_002dlaplace_005frnd"></a>

<div class="defun">
&mdash; Function File:  <b>laplace_rnd</b> (<var>r</var>)<var><a name="index-laplace_005frnd-2637"></a></var><br>
&mdash; Function File:  <b>laplace_rnd</b> (<var>r, c, <small class="dots">...</small></var>)<var><a name="index-laplace_005frnd-2638"></a></var><br>
&mdash; Function File:  <b>laplace_rnd</b> ([<var>sz</var>])<var><a name="index-laplace_005frnd-2639"></a></var><br>
<blockquote><p>Return a matrix of random samples from the Laplace distribution.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>. 
</p></blockquote></div>

<!-- logistic_rnd scripts/statistics/distributions/logistic_rnd.m -->
   <p><a name="doc_002dlogistic_005frnd"></a>

<div class="defun">
&mdash; Function File:  <b>logistic_rnd</b> (<var>r</var>)<var><a name="index-logistic_005frnd-2640"></a></var><br>
&mdash; Function File:  <b>logistic_rnd</b> (<var>r, c, <small class="dots">...</small></var>)<var><a name="index-logistic_005frnd-2641"></a></var><br>
&mdash; Function File:  <b>logistic_rnd</b> ([<var>sz</var>])<var><a name="index-logistic_005frnd-2642"></a></var><br>
<blockquote><p>Return a matrix of random samples from the logistic distribution.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>. 
</p></blockquote></div>

<!-- lognrnd scripts/statistics/distributions/lognrnd.m -->
   <p><a name="doc_002dlognrnd"></a>

<div class="defun">
&mdash; Function File:  <b>lognrnd</b> (<var>mu, sigma</var>)<var><a name="index-lognrnd-2643"></a></var><br>
&mdash; Function File:  <b>lognrnd</b> (<var>mu, sigma, r</var>)<var><a name="index-lognrnd-2644"></a></var><br>
&mdash; Function File:  <b>lognrnd</b> (<var>mu, sigma, r, c, <small class="dots">...</small></var>)<var><a name="index-lognrnd-2645"></a></var><br>
&mdash; Function File:  <b>lognrnd</b> (<var>mu, sigma, </var>[<var>sz</var>])<var><a name="index-lognrnd-2646"></a></var><br>
<blockquote><p>Return a matrix of random samples from the lognormal distribution with
parameters <var>mu</var> and <var>sigma</var>.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the common size of
<var>mu</var> and <var>sigma</var>. 
</p></blockquote></div>

<!-- nbinrnd scripts/statistics/distributions/nbinrnd.m -->
   <p><a name="doc_002dnbinrnd"></a>

<div class="defun">
&mdash; Function File:  <b>nbinrnd</b> (<var>n, p</var>)<var><a name="index-nbinrnd-2647"></a></var><br>
&mdash; Function File:  <b>nbinrnd</b> (<var>n, p, r</var>)<var><a name="index-nbinrnd-2648"></a></var><br>
&mdash; Function File:  <b>nbinrnd</b> (<var>n, p, r, c, <small class="dots">...</small></var>)<var><a name="index-nbinrnd-2649"></a></var><br>
&mdash; Function File:  <b>nbinrnd</b> (<var>n, p, </var>[<var>sz</var>])<var><a name="index-nbinrnd-2650"></a></var><br>
<blockquote><p>Return a matrix of random samples from the negative binomial
distribution with parameters <var>n</var> and <var>p</var>.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the common size of
<var>n</var> and <var>p</var>. 
</p></blockquote></div>

<!-- normrnd scripts/statistics/distributions/normrnd.m -->
   <p><a name="doc_002dnormrnd"></a>

<div class="defun">
&mdash; Function File:  <b>normrnd</b> (<var>mu, sigma</var>)<var><a name="index-normrnd-2651"></a></var><br>
&mdash; Function File:  <b>normrnd</b> (<var>mu, sigma, r</var>)<var><a name="index-normrnd-2652"></a></var><br>
&mdash; Function File:  <b>normrnd</b> (<var>mu, sigma, r, c, <small class="dots">...</small></var>)<var><a name="index-normrnd-2653"></a></var><br>
&mdash; Function File:  <b>normrnd</b> (<var>mu, sigma, </var>[<var>sz</var>])<var><a name="index-normrnd-2654"></a></var><br>
<blockquote><p>Return a matrix of random samples from the normal distribution with
parameters mean <var>mu</var> and standard deviation <var>sigma</var>.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the common size of
<var>mu</var> and <var>sigma</var>. 
</p></blockquote></div>

<!-- poissrnd scripts/statistics/distributions/poissrnd.m -->
   <p><a name="doc_002dpoissrnd"></a>

<div class="defun">
&mdash; Function File:  <b>poissrnd</b> (<var>lambda</var>)<var><a name="index-poissrnd-2655"></a></var><br>
&mdash; Function File:  <b>poissrnd</b> (<var>lambda, r</var>)<var><a name="index-poissrnd-2656"></a></var><br>
&mdash; Function File:  <b>poissrnd</b> (<var>lambda, r, c, <small class="dots">...</small></var>)<var><a name="index-poissrnd-2657"></a></var><br>
&mdash; Function File:  <b>poissrnd</b> (<var>lambda, </var>[<var>sz</var>])<var><a name="index-poissrnd-2658"></a></var><br>
<blockquote><p>Return a matrix of random samples from the Poisson distribution with
parameter <var>lambda</var>.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the size of
<var>lambda</var>. 
</p></blockquote></div>

<!-- stdnormal_rnd scripts/statistics/distributions/stdnormal_rnd.m -->
   <p><a name="doc_002dstdnormal_005frnd"></a>

<div class="defun">
&mdash; Function File:  <b>stdnormal_rnd</b> (<var>r</var>)<var><a name="index-stdnormal_005frnd-2659"></a></var><br>
&mdash; Function File:  <b>stdnormal_rnd</b> (<var>r, c, <small class="dots">...</small></var>)<var><a name="index-stdnormal_005frnd-2660"></a></var><br>
&mdash; Function File:  <b>stdnormal_rnd</b> ([<var>sz</var>])<var><a name="index-stdnormal_005frnd-2661"></a></var><br>
<blockquote><p>Return a matrix of random samples from the standard normal distribution
(mean = 0, standard deviation = 1).

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>. 
</p></blockquote></div>

<!-- trnd scripts/statistics/distributions/trnd.m -->
   <p><a name="doc_002dtrnd"></a>

<div class="defun">
&mdash; Function File:  <b>trnd</b> (<var>n</var>)<var><a name="index-trnd-2662"></a></var><br>
&mdash; Function File:  <b>trnd</b> (<var>n, r</var>)<var><a name="index-trnd-2663"></a></var><br>
&mdash; Function File:  <b>trnd</b> (<var>n, r, c, <small class="dots">...</small></var>)<var><a name="index-trnd-2664"></a></var><br>
&mdash; Function File:  <b>trnd</b> (<var>n, </var>[<var>sz</var>])<var><a name="index-trnd-2665"></a></var><br>
<blockquote><p>Return a matrix of random samples from the t (Student) distribution with
<var>n</var> degrees of freedom.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the size of
<var>n</var>. 
</p></blockquote></div>

<!-- unidrnd scripts/statistics/distributions/unidrnd.m -->
   <p><a name="doc_002dunidrnd"></a>

<div class="defun">
&mdash; Function File:  <b>unidrnd</b> (<var>n</var>)<var><a name="index-unidrnd-2666"></a></var><br>
&mdash; Function File:  <b>unidrnd</b> (<var>n, r</var>)<var><a name="index-unidrnd-2667"></a></var><br>
&mdash; Function File:  <b>unidrnd</b> (<var>n, r, c, <small class="dots">...</small></var>)<var><a name="index-unidrnd-2668"></a></var><br>
&mdash; Function File:  <b>unidrnd</b> (<var>n, </var>[<var>sz</var>])<var><a name="index-unidrnd-2669"></a></var><br>
<blockquote><p>Return a matrix of random samples from the discrete uniform distribution
which assumes the integer values 1&ndash;<var>n</var> with equal probability. 
<var>n</var> may be a scalar or a multi-dimensional array.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the size of
<var>n</var>. 
</p></blockquote></div>

<!-- unifrnd scripts/statistics/distributions/unifrnd.m -->
   <p><a name="doc_002dunifrnd"></a>

<div class="defun">
&mdash; Function File:  <b>unifrnd</b> (<var>a, b</var>)<var><a name="index-unifrnd-2670"></a></var><br>
&mdash; Function File:  <b>unifrnd</b> (<var>a, b, r</var>)<var><a name="index-unifrnd-2671"></a></var><br>
&mdash; Function File:  <b>unifrnd</b> (<var>a, b, r, c, <small class="dots">...</small></var>)<var><a name="index-unifrnd-2672"></a></var><br>
&mdash; Function File:  <b>unifrnd</b> (<var>a, b, </var>[<var>sz</var>])<var><a name="index-unifrnd-2673"></a></var><br>
<blockquote><p>Return a matrix of random samples from the uniform distribution on
[<var>a</var>, <var>b</var>].

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the common size of
<var>a</var> and <var>b</var>. 
</p></blockquote></div>

<!-- wblrnd scripts/statistics/distributions/wblrnd.m -->
   <p><a name="doc_002dwblrnd"></a>

<div class="defun">
&mdash; Function File:  <b>wblrnd</b> (<var>scale, shape</var>)<var><a name="index-wblrnd-2674"></a></var><br>
&mdash; Function File:  <b>wblrnd</b> (<var>scale, shape, r</var>)<var><a name="index-wblrnd-2675"></a></var><br>
&mdash; Function File:  <b>wblrnd</b> (<var>scale, shape, r, c, <small class="dots">...</small></var>)<var><a name="index-wblrnd-2676"></a></var><br>
&mdash; Function File:  <b>wblrnd</b> (<var>scale, shape, </var>[<var>sz</var>])<var><a name="index-wblrnd-2677"></a></var><br>
<blockquote><p>Return a matrix of random samples from the Weibull distribution with
parameters <var>scale</var> and <var>shape</var>.

        <p>When called with a single size argument, return a square matrix with
the dimension specified.  When called with more than one scalar argument the
first two arguments are taken as the number of rows and columns and any
further arguments specify additional matrix dimensions.  The size may also
be specified with a vector of dimensions <var>sz</var>.

        <p>If no size arguments are given then the result matrix is the common size of
<var>scale</var> and <var>shape</var>. 
</p></blockquote></div>

<!-- wienrnd scripts/statistics/distributions/wienrnd.m -->
   <p><a name="doc_002dwienrnd"></a>

<div class="defun">
&mdash; Function File:  <b>wienrnd</b> (<var>t, d, n</var>)<var><a name="index-wienrnd-2678"></a></var><br>
<blockquote><p>Return a simulated realization of the <var>d</var>-dimensional Wiener Process
on the interval [0, <var>t</var>].  If <var>d</var> is omitted, <var>d</var> = 1 is
used.  The first column of the return matrix contains time, the
remaining columns contain the Wiener process.

        <p>The optional parameter <var>n</var> gives the number of summands used for
simulating the process over an interval of length 1.  If <var>n</var> is
omitted, <var>n</var> = 1000 is used. 
</p></blockquote></div>

<!-- DO NOT EDIT!  Generated automatically by munge-texi.pl. -->
<!-- Copyright (C) 1996-2012 John W. Eaton -->
<!-- This file is part of Octave. -->
<!-- Octave is free software; you can redistribute it and/or modify it -->
<!-- under the terms of the GNU General Public License as published by the -->
<!-- Free Software Foundation; either version 3 of the License, or (at -->
<!-- your option) any later version. -->
<!-- Octave is distributed in the hope that it will be useful, but WITHOUT -->
<!-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -->
<!-- FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License -->
<!-- for more details. -->
<!-- You should have received a copy of the GNU General Public License -->
<!-- along with Octave; see the file COPYING.  If not, see -->
<!-- <http://www.gnu.org/licenses/>. -->
   </body></html>