RANDOM(6) BSD Reference Manual RANDOM(6)
r
\bra
\ban
\bnd
\bdo
\bom
\bm - random lines from a file or random numbers
S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
r
\bra
\ban
\bnd
\bdo
\bom
\bm [-
\b-e
\ber
\br] [_
\bd_
\be_
\bn_
\bo_
\bm_
\bi_
\bn_
\ba_
\bt_
\bo_
\br]
D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
R
\bRa
\ban
\bnd
\bdo
\bom
\bm reads lines from the standard input and copies them to the stan-
dard output with a probability of 1/denominator. The default value for
_
\bd_
\be_
\bn_
\bo_
\bm_
\bi_
\bn_
\ba_
\bt_
\bo_
\br is 2.
The options are as follows:
-
\b-e
\be If the -
\b-e
\be option is specified, r
\bra
\ban
\bnd
\bdo
\bom
\bm does not read or write any-
thing, and simply exits with a random exit value of 0 to
_
\bd_
\be_
\bn_
\bo_
\bm_
\bi_
\bn_
\ba_
\bt_
\bo_
\br - 1, inclusive.
-
\b-r
\br The -
\b-r
\br option guarantees that the output is unbuffered.
S
\bSE
\bEE
\bE A
\bAL
\bLS
\bSO
\bO
4th Berkeley Distribution March 31, 1994 1