Random Number from range
Building off of Brad's answer, you might consider using a for loop to render your markup, instead of setting all of those variables:

{% set range = range(10, 90) %}
{% set totalDivs = 5 %}

&lt;div class="sandbox"&gt;
  {% for i in 1..totalDivs %}
    &lt;div style="left: {{ random(range) }}%; top: {{ random(range) }}%;"&gt;&lt;/div&gt;
  {% endfor %}
&lt;/div&gt;