166530Sbostic.\" Copyright (c) 1994 266530Sbostic.\" The Regents of the University of California. All rights reserved. 366530Sbostic.\" 466530Sbostic.\" %sccs.include.redist.man% 566530Sbostic.\" 6*66534Sbostic.\" @(#)random.6 8.2 (Berkeley) 03/31/94 766530Sbostic.\" 866530Sbostic.Dd 966530Sbostic.Dt RANDOM 6 1066530Sbostic.Os BSD 4 1166530Sbostic.Sh NAME 1266530Sbostic.Nm random 1366530Sbostic.Nd random lines from a file or random numbers 1466530Sbostic.Sh SYNOPSIS 1566530Sbostic.Nm random 1666530Sbostic.Op Fl er 17*66534Sbostic.Op Ar denominator 1866530Sbostic.Sh DESCRIPTION 1966530Sbostic.Nm Random 2066530Sbosticreads lines from the standard input and copies them to the standard 21*66534Sbosticoutput with a probability of 1/denominator. 2266530SbosticThe default value for 23*66534Sbostic.Ar denominator 2466530Sbosticis 2. 2566530Sbostic.Pp 2666530SbosticThe options are as follows: 2766530Sbostic.Bl -tag -width Ds 2866530Sbostic.It Fl e 2966530SbosticIf the 3066530Sbostic.Fl e 3166530Sbosticoption is specified, 3266530Sbostic.Nm random 3366530Sbosticdoes not read or write anything, and simply exits with a random 3466530Sbosticexit value of 0 to 35*66534Sbostic.Ar denominator 3666530Sbostic\&- 1, inclusive. 3766530Sbostic.It Fl r 3866530SbosticThe 3966530Sbostic.Fl r 4066530Sbosticoption guarantees that the output is unbuffered. 4166530Sbostic.El 4266530Sbostic.Sh SEE ALSO 4366530Sbostic.Xr fortune 6 44