I'm looking for some examples / algorithms to automatically allow me to create an array of numbers that represent a 2d terrain i.e.
etc - for a larger grid - where the numbers represent different land types i.e. 1 for water, 2 for land, 3 for rock/impassable land...
A purely random approach would not be good enough as it would leave rocks in the middle of water and random patches of water here and there.
Any ideas anyone?