We actually have a built-in feature that probably does what you want – inside the vars section, you can write:

```
<div data-ensure="A >= 25 && B >= 25 && C >= 25">
<var id="A">randRange(25, 150)</var>
<var id="B">randRange(25, 180 - A)</var>
<var id="C">180 - A - B</var>
</div>
```