Add coverage option to procedural terrain generator

See #634. This version uses `mRandI` instead of C's `rand`.
I'll rebase this if someone really wants :P.