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

    <synopsis>ir <command>unirand</command> krange</synopsis>

    <synopsis>kr <command>unirand</command> krange</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>krange</emphasis> -- the range of the random numbers (0 - <emphasis>krange</emphasis>).
    </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 unirand opcode. It uses the files <ulink url="examples/unirand.orc"><citetitle>unirand.orc</citetitle></ulink> and <ulink url="examples/unirand.sco"><citetitle>unirand.sco</citetitle></ulink>.

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

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

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

      Its output should include lines like this:
      <screen>
instr 1:  i1 = 0.840
      </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="linrand"><citetitle>linrand</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="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>
