[Olena-patches] last-svn-commit-832-g9d2089b Added a choose function, to be used with handle_collisions.