NAME

random - return random number

SYNOPSIS

int random(int mod)

DESCRIPTION

Return a positive random number in the range 0 .. mod-1.  If mod is
zero, the result is a full-integer random number.

ERRORS

An error will result if mod is less than zero.