random(6)

random6

Random lines from a file or random numbers

Usage

random [-er] [denominator]

Overview

random reads lines from the standard input and copies them to the standard 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 anything, and simply exits with a random exit value of 0 to denominator-1, inclusive.

-r

The -r option guarantees that the output is unbuffered.

Releases

15 releases since Debian 2.0 (Hamm); the text changed 2 times.

  1. 2.0–2.1
  2. 2.2–3.0
  3. 3.1–13

From bsdgames 2.17-35 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.