MirBSD manpage: random(6)

RANDOM(6)                    BSD Reference Manual                    RANDOM(6)


     random - random lines from a file or random numbers


     random [-er] [denominator]


     random reads lines from the standard input and copies them to the stan-
     dard output with a probability of 1/denominator. The default value for
     denominator is 2.

     The options are as follows:

     -e      If the -e option is specified, random does not read or write any-
             thing, and simply exits with a random exit value of 0 to
             denominator - 1, inclusive.

     -r      The -r option guarantees that the output is unbuffered.



MirBSD #10-current              March 31, 1994                               1

Generated on 2021-12-07 11:28:18 by $MirOS: src/scripts/roff2htm,v 1.103 2021/01/23 20:24:35 tg Exp $ — This product includes material provided by mirabilos.

These manual pages and other documentation are copyrighted by their respective writers; their sources are available at the project’s CVSweb, AnonCVS and other mirrors. The rest is Copyright © 2002–2021 MirBSD.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.