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

  <refnamediv>
    <refname>randomi</refname>
    <refpurpose>
      Generates a user-controlled random number series with interpolation between each new number.
      <indexterm id="IndexRandomi"><primary>randomi</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      Generates a user-controlled random number series with interpolation between each new number.
    </para>
  </refsect1>

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

    <synopsis>kr <command>randomi</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>randomi</emphasis> opcode is similar to <link linkend="randi"><citetitle>randi</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 randomi opcode. It uses the files <ulink url="examples/randomi.orc"><citetitle>randomi.orc</citetitle></ulink> and <ulink url="examples/randomi.sco"><citetitle>randomi.sco</citetitle></ulink>.

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

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

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

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

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="randi"><citetitle>randi</citetitle></link>,
      <link linkend="random"><citetitle>random</citetitle></link>,
      <link linkend="randomh"><citetitle>randomh</citetitle></link>
    </para>
  </refsect1>

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