RANDOM(6) DOMAIN/IX SYS5 RANDOM(6)
NAME
random - random number generator
USAGE
/usr/games/random
[numbers] [characters]
DESCRIPTION
Random is a random number generator that accepts input of
numbers or characters. There is about a 50% probability that
the program will match and output the lines that you use as
input. You can also perform a particular task (e.g., combin-
ing lines in a file, listing a directory, etc.) and then use
random in a pipeline to produce a random sampling of the
output. For example, this takes the contents of mydir and
then lists a random percentage (about 50%) of the lines con-
tained in it:
ls my_dir | random
Random is a likely candidate for use in other games that
require the use of a random number generator.
Printed 12/4/86 RANDOM-1