<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="randomh">
  <refmeta>
    <refentrytitle>randomh</refentrytitle>
  </refmeta>

  <refnamediv>
    <refname>randomh</refname>
    <refpurpose>
      Generates random numbers with a user-defined limit and holds them for a period of time. 
      <indexterm id="IndexRandomh"><primary>randomh</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      Generates random numbers with a user-defined limit and holds them for a period of time. 
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>randomh</command> kmin, kmax, acps</synopsis>

    <synopsis>kr <command>randomh</command> kmin, kmax, kcps</synopsis>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>kmin</emphasis> -- minimum range limit
    </para>

    <para>
      <emphasis>kmax</emphasis> -- maximum range limit
    </para>

    <para>
      <emphasis>kcps, acps</emphasis> -- rate of random break-point generation
    </para>

    <para>
      The <emphasis>randomh</emphasis> opcode is similar to <link linkend="randh"><citetitle>randh</citetitle></link> but allows the user to set arbitrary minimum and maximum values.
    </para>
  </refsect1>

  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the randomh opcode. It uses the files <ulink url="examples/randomh.orc"><citetitle>randomh.orc</citetitle></ulink> and <ulink url="examples/randomh.sco"><citetitle>randomh.sco</citetitle></ulink>.

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

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

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

      Its output should include lines like:
      <screen>
k1 = 220.000000
k1 = 414.232056
k1 = 284.095184
      </screen>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="randh"><citetitle>randh</citetitle></link>,
      <link linkend="random"><citetitle>random</citetitle></link>,
      <link linkend="randomi"><citetitle>randomi</citetitle></link>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>Author: &namegabriel;</para>
    <para>Example written by &namekevin;.</para>
  </refsect1>
</refentry>
