The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<html><head><title>random</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" >
</head>
<body class='pod'>
<!--
  generated by Pod::Simple::HTML v3.01,
  using Pod::Simple::PullParser v2.02,
  under Perl v5.008002 at Thu Aug  5 13:56:22 2004 GMT.

 If you want to change this HTML document, you probably shouldn't do that
   by changing it directly.  Instead, see about changing the calling options
   to Pod::Simple::HTML, and/or subclassing Pod::Simple::HTML,
   then reconverting this document from the Pod source.
   When in doubt, email the author of Pod::Simple::HTML for advice.
   See 'perldoc Pod::Simple::HTML' for more info.

-->

<!-- start doc -->
<a name='___top' class='dummyTopAnchor' ></a>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="NAME"
>NAME</a></h1>

<p>random -- display lines at random,
or exit with a random value.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="SYNOPSIS"
>SYNOPSIS</a></h1>

<p>random [-er] [denominator]</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="DESCRIPTION"
>DESCRIPTION</a></h1>

<p><i>random</i> reads line from standard input,
and displays each line on standard output which chance 1 / <i>denominator</i>.
If the <i>-e</i> option is given,
<i>random</i> exits with a value randomly choosen from <code lang='und' xml:lang='und'>0</code> to <code lang='und' xml:lang='und'>denominator - 1</code> inclusive.
If no <i>denominator</i> is given,
2 is used.</p>

<h2><a class='u' href='#___top' title='click to go to top of document'
name="OPTIONS"
>OPTIONS</a></h2>

<p><i>random</i> accepts the following options:</p>

<dl>
<dt><a name="-e"
>-e</a></dt><p class="pad"></p>

<dd>Exit with a value randomly choosen from <code lang='und' xml:lang='und'>0</code> to <code lang='und' xml:lang='und'>denominator - 1</code> inclusive.
Do not read input,
or display output.</dd><p class="pad"></p>

<dt><a name="-r"
>-r</a></dt><p class="pad"></p>

<dd>Use unbuffered output.</dd><p class="pad"></p>
</dl>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="ENVIRONMENT"
>ENVIRONMENT</a></h1>

<p>The working of <i>random</i> is not influenced by any environment variables.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="BUGS"
>BUGS</a></h1>

<p>There are no known bugs in <i>random</i>.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="REVISION_HISTORY"
>REVISION HISTORY</a></h1>

<pre lang='und' xml:lang='und'>    $Log: random.abigail.html,v $
<pre lang='und' xml:lang='und'>    Revision 1.3  2004/08/05 14:21:46  cwest
<pre lang='und' xml:lang='und'>    cleanup, new version number on website
<pre lang='und' xml:lang='und'>
    Revision 1.1  2004/07/23 20:10:15  cwest
    initial import

    Revision 1.1  1999/02/28 22:10:55  abigail
    Initial revision</pre>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="AUTHOR"
>AUTHOR</a></h1>

<p>The Perl implementation of <i>random</i> was written by Abigail, <i>abigail@fnx.com</i>.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="COPYRIGHT_and_LICENSE"
>COPYRIGHT and LICENSE</a></h1>

<p>This program is copyright by Abigail 1999.</p>

<p>This program is free and open software. You may use, copy, modify, distribute and sell this program (and any modified variants) in any way you wish, provided you do not restrict others to do the same.</p>

<!-- end doc -->

</body></html>