Using forloop index as part of new variable

Hi, I am trying to generate 2 random numbers (range 0-3) and assign them to a new variable containing the loop index as part of the variable name.

{% for i in (1..2) %}
{% capture randomNumber %}
{% random 3 %}
{% endcapture %}
{% assign result_{{i}} = {{randomNumber}} %}
{% endfor %}
{{result_1}} : {{result_2}}

The loop itself seems to work since If I just assign to “result” and put that out as part of the loop, then I get 2 the two numbers. I guess the syntax for using the loop index within the assign part is wrong. Any ideas?

Cheers

Thomas