MATRICES
u could have predefined map data for matrices.
The computer randomly picks one and loads it up.
u could make a random creation tool using simple logic to randomly place objects not on top of each other and not over water.
TERRAINS
u could use a perlin noise function to create a bitmap thats represented on a terrain in the form of a greyscale heightmap image.
MAZES
U could make a program that plots black and white pixels into a file that creates a maze effect, then translate these colours into cubes or spaces.
Instead of the tile being created first u could just produce
a maze like effect with objects by creating a peice of code that basically checks what directions it can take depending on data already laid down and either turns a corner and or comes to an dead end.
depends on what u want to achieve really.