RAND
Creates a pseudo-random number with an upper limit
#include <ultra64.h> /* gu.h */
RAND(s32 max)
32-bit integer (0 ~ max-1)
Returns a pseudo-random number within the range (0 ~ max-1). If there is no need to set an upper limit on the random number, you can also use guRandom.
03/01/99 Completely rewritten.