1RANDOM(6)                      BSD Games Manual                      RANDOM(6)
2

NAME

4     random — random lines from a file or random numbers
5

SYNOPSIS

7     random [-er] [denominator]
8

DESCRIPTION

10     random reads lines from the standard input and copies them to the stan‐
11     dard output with a probability of 1/denominator.  The default value for
12     denominator is 2.
13
14     The options are as follows:
15
16     -e      If the -e option is specified, random does not read or write any‐
17             thing, and simply exits with a random exit value of 0 to
18             denominator-1, inclusive.
19
20     -r      The -r option guarantees that the output is unbuffered.
21

SEE ALSO

23     fortune(6)
24
25BSD                             March 31, 1994                             BSD
Impressum