Implement random function

This pull request implements a ``random`` function that matches the behavior of the ``twig_random`` function that appears here:
https://github.com/fabpot/Twig/blob/7c63a7df8a9d38ff9eb9fb982ae8f6a70258c10c/lib/Twig/Extension/Core.php#L386