Common map generation algorithms.