Store result of Jinja filter
Use the filter without {{
}}
delimiters.
{% set image = images|random %}
Jinja stores globals and filters in two different namespaces (dictionaries), which prevents them from being used interchangeably.
|
in Jinja just passes the variable into the function. Simply call the function and it should work:
{% set image = random(images) %}