Implementing simple GUI layouts

Hello. I’m trying to minimize things, that i do with code, so i need to solve simple question. For example, i need to create a row from quads, where each quad have a random width, but placed on a fixed offset from a previous. So, starting from second quad we need to know previous element scale and position plus offset to calculate next element position. I usually writing dynamic plugins for this kind of tasks, but maybe the is the way to implement this with standard nodes?

use Integral (Spreads) to sum up the widths of all previous quads + offset

@woei nice solution, big thx. Maybe anyone have another tips?