I feel like this should be simple, but I can’t quite figure out how to do this. Want I want to do is create a bunch of small cubes/rectangular prisms that are all against each other at right angles (without gaps and without any geometry overlapping) which form a large square, and then displace each one upward randomly. Essentially, something like any one side of the cube in this picture:
Notice how all of the prisms on the top layer are against each other at right angles without gaps, but have different dimensions and the overall perimeter still forms a perfect square. I feel like there has to be an easy way to do this, but a random effector leads to clipping and a random effector with a push apart effector leads to gaps.
How would you do this in C4D?