def get_random_objects(model, num):
return _get_model(model)._default_manager.order_by('<STR_LIT:?>')[:int(num)]<EOL>
Retrieves ``num`` random objects from a given model, and stores
them in a context variable.

Syntax::

    {% get_random_objects [app_name].[model_name] [num] as [varname] %}

Example::

    {% get_random_objects comments.freecomment 5 as random_comments %}