title: Store result of Jinja filter
body: <p>The basics of what I am trying to do is to use the 'random' filter to choose a random item from my list but then I want to use that randomly chosen item in multiple locations.</p>
  
  <p>How do I set the result of a filter to a variable that I can use in multiple locations.</p>
  
  <p>If I call the 'random' filter multiple times there is little chance they will be the same.</p>
  
  <p>Essentially what I want to do:</p>
  
  <pre><code>{% set image = {{ images | random }} %}
  </code></pre>
  
  <p>obviously this doesnt work.</p>