EFUN: random

SYNTAX:
int random( i );
  int i;

DESCRIPTION:
This efun is used to generate a random integer in the range
from (and including) 0 to i-1.

RETURN VALUE:
A random integer.

SEE ALSO:
time

EXAMPLE:
int i;

i = random( 10 );
if( !i ) write( "Jackpot!\n" );
else write( "Sorry, you're out of luck.\n" );
// i now has a value in the range from 0 to 9.
// As shown here, random can be used to have things happen
// at a 1 in 10 (in this case) chance.
