What you are asking is quad re-mesher. As far as i know Blender doesn't have it same good as in Zbrush, 3d max or Houdiny. Same as in Zbrush one is having been sold as an inexpensive addon for Blender with a free trial. Neighter of them are good enough to make clean cutting edge of a blade for example. You can try nodes of…
The task to solve you mention is very generally specified.. what should "random" mean here.. You can always throw a Remesh modifier with method Voxel on any object genrated by whatever... or: For example you could also start with a cube and scale and extrude any faces for some time (maybe with some check of intersect…