Hi Tobi,
Is this the syntax you had in mind: {% assign_random foo =
some_array %} ?
I'm thinking have {% assign_random %} return a random element from
the array, but if some_array is not actually an array, it would behave
just like {% assign %}
Thanks.
-Nash
On Aug 7, 10:58 am, "Tobias Lütke" <
tobias.lue...@gmail.com> wrote:
> You would probably have to write your own {% assign_random %} tag
>
> On Thu, Aug 7, 2008 at 11:11 AM, Nash <
nkabb...@gmail.com> wrote:
>
> > Hi,
>
> > I need to do something like: {% assign foo = some_array | rand %},
> > but this doesn't work.
>
> > How can I have foo contain a random element from some_array?
>
> > Thanks.
>
> > -Nash
>
> --