A code to generate a random terrain consisting of land and water bodies.