Check out a nice application by watabou that generates a random medieval city layout of a requested size. A little is known about the method behind this app. The goal of the project is to instantly produce a nice-looking map, not an accurate model of a city.

Just click one of the buttons and get a new city map of a desired size. Hover the mouse pointer over a building to see the type of the ward it belongs to.