fabpot/Twig — pull request #613 by Tobion (2012-01-25 12:36:24+00:00)
Title: Improved random function

- dealing with empty array (otherwise PHP warning is raised)
- using array_rand() and thus saving the $keys variable