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

  <refnamediv>
    <refname>GEN41</refname>
    <refpurpose>
      Generates a random list of numerical pairs.
      <indexterm id="IndexGEN41"><primary>GEN41</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      Generates a discrete random distribution function by giving a list of numerical pairs.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis><command>f</command> # time size -41 value1 prob1 value2 prob2 value3 prob3 ... valueN probN </synopsis>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      The first number of each pair is a value, and the second is the probability of that value to be chosen by a random algorithm. Even if any number can be assigned to the probability element of each pair, it is suggested to give it a percent value, in order to make it clearer for the user.
    </para>

    <para>
      This subroutine is designed to be used together with duserrnd and <link linkend="urd"><citetitle>urd</citetitle></link> opcodes (see <link linkend="duserrnd">duserrnd</link> for more information).
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>Author: &namegabriel;</para>
  </refsect1>
</refentry>
