SysIII/usr/src/games/master/randint.c

Compare this file to the similar file:
Show the results in this format:

/*
 *	Returns a random integer k such that 0<=k<s
 */
randint(s)
	int s;
{

	return (int) ((long) rand() * s / 32768L);
}