diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 21:07:28 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 21:07:28 -0400 |
| commit | 711594636704defae873be1a355a292505585afd (patch) | |
| tree | 59ee13f863830d8beba6cfd02bbe813dd486c26f /static/v10/man1/random.1 | |
| parent | 3258a063c1f189d7b019e40e525b46bef9b9a7b1 (diff) | |
docs: Added UNIX V10 Manuals
Diffstat (limited to 'static/v10/man1/random.1')
| -rw-r--r-- | static/v10/man1/random.1 | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/static/v10/man1/random.1 b/static/v10/man1/random.1 new file mode 100644 index 00000000..f4623cda --- /dev/null +++ b/static/v10/man1/random.1 @@ -0,0 +1,50 @@ +.TH RANDOM 1 +.CT 1 files games +.SH NAME +random, fortune \- sample lines from a file, return cookies +.SH SYNOPSIS +.B random +[ +.B -e +] +[ +.I n +] +.PP +.B /usr/games/fortune +[ +.I file +] +.SH DESCRIPTION +.I Random +reads the standard input and copies each line to the +standard output with probability +.RI 1/ n. +The default value of +.I n +is 2. +.PP +Option +.B -e +writes no output and returns a random exit code in the +range +.RI [0, n \-1]. +.PP +.I Fortune +prints a one-line aphorism chosen at random. +If a +.I file +is specified, the saying is taken from that file; +otherwise it is selected from +.FR /usr/games/lib/fortunes . +.SH FILES +.F /usr/games/lib/fortunes +.br +.F /usr/games/lib/fortunes.index +fast lookup table, maintained automatically +.SH BUGS +Successive results of option +.B -e +are highly correlated if +.I random +is called more than once per second. |
