Add coverage option to procedural terrain generator

See #634. This version uses `mRandI` instead of C's `rand`.