MirOS Manual: 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.



MirOS BSD #10-current           March 31, 1994                               1

Generated on 2015-10-13 20:50:02 by $MirOS: src/scripts/roff2htm,v 1.80 2015/01/02 13:54:19 tg Exp $

These manual pages and other documentation are copyrighted by their respective writers; their source is available at our CVSweb, AnonCVS, and other mirrors. The rest is Copyright © 2002–2015 The MirOS Project, Germany.
This product includes material provided by Thorsten Glaser.

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