Add min/average/max types to fake sj_random.

The min type always returns zero values, max always returns the max value
in the requested range and average always returns half the max value
(truncated) in the requested range.