Ported from mkmap.c and sp_lev.c, covering the generic Gnomish mines levels, with a few simplifications. The PRNG doesn't match NetHack's.