#include "gm_internal.h"
gm_rand_mod() returns a pseudo-random number modulo modulus, using
a poor but fast random number generator.