mesh plane made into small blocks for buildings

Is there a way to make a plane sub-divided into a lot of square and to make them extrude in different sizes to make them look like buildings in a city block?

Maybe Something like this…?


Just sub-divide the sub-divided squares you want to extrude higher and so on and so on.

There is Sverchok addon which certainly can do this; even more - sligtly modified @bashi example posted on that thread would make couple of blocks easily…
http://www.pasteall.org/pic/show.php?id=81392