RANDOM(1XNX) XENIX System Compatibility RANDOM(1XNX)

random - (XENIX) generate a random number

random [-s] [scale]

Random computes a random value. The result is printed on standard output and is also returned as exit status. The -s option inhibits printing of the result. When a scale is given, computed values lie between 0 and scale. The maximum scale value is 255, the default is 1.

Since the current time in seconds is used as seed for computation, calling random more than once within the same second produces the same result for each call.

11/3/03 Heirloom Toolchest