Add environmentfilter to random filter, to ensure the result doesn't get cached. Mirrors default jinja filter.
Merge pull request #7705 from smoothify/random-nocache

Ensure random jinja filter doesn't get cached in loops.