.\" Copyright (c) 1994 .\" The Regents of the University of California. All rights reserved. .\" .\" %sccs.include.redist.man% .\" .\" @(#)random.6 8.2 (Berkeley) 03/31/94 .\" .Dd .Dt RANDOM 6 .Os BSD 4 .Sh NAME .Nm random .Nd random lines from a file or random numbers .Sh SYNOPSIS .Nm random .Op Fl er .Op Ar denominator .Sh DESCRIPTION .Nm Random reads lines from the standard input and copies them to the standard output with a probability of 1/denominator. The default value for .Ar denominator is 2. .Pp The options are as follows: .Bl -tag -width Ds .It Fl e If the .Fl e option is specified, .Nm random does not read or write anything, and simply exits with a random exit value of 0 to .Ar denominator \&- 1, inclusive. .It Fl r The .Fl r option guarantees that the output is unbuffered. .El .Sh SEE ALSO .Xr fortune 6