man(1) Manual page archive


     RANDOM(1)                                               RANDOM(1)

     NAME
          random, fortune - sample lines from a file, return cookies

     SYNOPSIS
          random [ -e ] [ n ]

          /usr/games/fortune [ file ]

     DESCRIPTION
          Random reads the standard input and copies each line to the
          standard output with probability 1/n.  The default value of
          n is 2.

          Option -e writes no output and returns a random exit code in
          the range [0,n-1].

          Fortune prints a one-line aphorism chosen at random.  If a
          file is specified, the saying is taken from that file; oth-
          erwise it is selected from

     FILES
          fast lookup table, maintained automatically

     BUGS
          Successive results of option -e are highly correlated if
          random is called more than once per second.