Third version: Now you can also use Customizer to play with the design directly in the browser
Second version, now you have a different number of cubes on each layer. You can also choose the rotated_cubes opcion to make more strange and random figures.
My own version of the classic experiment of random 3D figures generator made with OpensCAD.
Some examples here:
You can change the parameters to obtain other kind of random sculptures.
All the random sculptures could be 3D printed using supports.
NOTE: This is a work in progress, I probably change or improve some things with time.
I didn't print any of this random generated sculptures, but the maths that I used ensures that all the sculptures can be printed. You should probably use supports.