I have a need to pick a ‘sudo’ random number from 1-10 in my Tera templates. I’ve looked at a bunch of things and cannot find anything obvious to help me so I thought I would ask here.
Anyone come across a solution for this, I did think about using now() | date(format="%.2f")
and format date to get nano seconds and try something with that. But before I set off on that I thought I would ask here for an approach.
EDIT: Ok a short time later…
tried this:
{% for p in range(end=10) %}
number: {{ now() | date(format="%2f") }} <br>
{% endfor %}
And I get thread panics at a display implementation Error 5 and a whole bunch of stuff? if this not safe?
Thanks