Jinja2 also includes the range function which returns a sequence of numbers from start to end - 1, so you can use it with random:
Your lucky number is: {{ range(1, 51) | random }}
Jinja2 also includes the range function which returns a sequence of numbers from start to end - 1, so you can use it with random:
Your lucky number is: {{ range(1, 51) | random }}