Random.pm
NAME
Communiware::Filter::Random - pick few random items from filter result.
SYNOPSIS
<:Loop ::Random(count=N,filter=SomeFilter):>
DESCRIPTION
This filter recieves another filter as an argument and returns specified number of randomly picked results from it.
If count of results to pick is not specified, one random item is picked.
If specified count is greater than total number of items returned by base filter, entire result of base filter is returned but in random order.
PARAMETERS
- count=N
- Number of items to pick. If not specified, defaults to 1.
- filter=filter_expression
- Filter to pick from. Required.
16 октябрь 2007 13:44