-.\" $NetBSD: random.6,v 1.2 1995/04/22 07:44:04 cgd Exp $
+.\" $NetBSD: random.6,v 1.6 2003/08/07 09:37:35 agc Exp $
.\"
.\" Copyright (c) 1994
.\" The Regents of the University of California. All rights reserved.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
-.\" 3. All advertising materials mentioning features or use of this software
-.\" must display the following acknowledgement:
-.\" This product includes software developed by the University of
-.\" California, Berkeley and its contributors.
-.\" 4. Neither the name of the University nor the names of its contributors
+.\" 3. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\"
.Dd March 31, 1994
.Dt RANDOM 6
-.Os BSD 4
+.Os
.Sh NAME
.Nm random
.Nd random lines from a file or random numbers
.Sh SYNOPSIS
-.Nm random
+.Nm
.Op Fl er
.Op Ar denominator
.Sh DESCRIPTION
-.Nm Random
+.Nm
reads lines from the standard input and copies them to the standard
output with a probability of 1/denominator.
The default value for
If the
.Fl e
option is specified,
-.Nm random
+.Nm
does not read or write anything, and simply exits with a random
exit value of 0 to
-.Ar denominator
-\&- 1, inclusive.
+.Ar denominator Ns -1 ,
+inclusive.
.It Fl r
The
.Fl r