<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="linrand">
  <refmeta>
    <refentrytitle>linrand</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>linrand</refname>
    <refpurpose>
      Linear distribution random number generator (positive values only).
      <indexterm id="IndexLinrand"><primary>linrand</primary></indexterm>
      <indexterm id="IndexLinrandXClass"><primary>x-class noise generators</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Linear distribution random number generator (positive values only). This is an x-class noise generator.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>linrand</command> krange</synopsis>

    <synopsis>ir <command>linrand</command> krange</synopsis>

    <synopsis>kr <command>linrand</command> krange</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>krange</emphasis> -- the range of the random numbers (0 - <emphasis>krange</emphasis>). Outputs only positive numbers.
    </para>

    <para>
      For more detailed explanation of these distributions, see:
      <orderedlist>
        <listitem>
          <para>C. Dodge - T.A. Jerse 1985. Computer music. Schirmer books. pp.265 - 286</para>
        </listitem>

        <listitem>
          <para>D. Lorrain. A panoply of stochastic cannons. In C. Roads, ed. 1989. Music machine . Cambridge, Massachusetts: MIT press, pp. 351 - 379.</para>
        </listitem>
      </orderedlist>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the linrand opcode. It uses the files <ulink url="examples/linrand.orc"><citetitle>linrand.orc</citetitle></ulink> and <ulink url="examples/linrand.sco"><citetitle>linrand.sco</citetitle></ulink>.

      <example>
        <title>Example of the linrand opcode.</title>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/linrand.orc" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/linrand.sco" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>
      </example>

      Its output should include a line like this:
      <screen>
instr 1:  i1 = 0.394
      </screen>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="betarand"><citetitle>betarand</citetitle></link>,
      <link linkend="bexprnd"><citetitle>bexprnd</citetitle></link>,
      <link linkend="cauchy"><citetitle>cauchy</citetitle></link>,
      <link linkend="exprand"><citetitle>exprand</citetitle></link>,
      <link linkend="gauss"><citetitle>gauss</citetitle></link>,
      <link linkend="pcauchy"><citetitle>pcauchy</citetitle></link>,
      <link linkend="poisson"><citetitle>poisson</citetitle></link>,
      <link linkend="trirand"><citetitle>trirand</citetitle></link>,
      <link linkend="unirand"><citetitle>unirand</citetitle></link>,
      <link linkend="weibull"><citetitle>weibull</citetitle></link>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &nameparis;</member>
        <member>MIT, Cambridge</member>
        <member>1995</member>
      </simplelist>
    </para>
    <para>Example written by &namekevin;.</para>
  </refsect1>
</refentry>
