generate a random number
[ -s ]
[ scale ]
The random command
generates a random number on the standard output.
and returns the number as its exit value.
By default, this number is either 0 or 1
is 1 by default).
is given a value between 1 and 255, then the range
of the random value is from 0 to
is greater than 255, an error message is printed.
``silent'' option is given,
the random number is returned as an exit
value but is not printed on the standard output.
If an error occurs,
returns an exit value of zero.
This command does not perform any floating point
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003