public function findRandom(Query $query, array $options)
    {
        $query->order('rand()');

        if (!$query->clause('limit')) {
            $query->limit(1);
        }

        return $query;
    }
public function findRandom(Query $query, array $options)
    {
        $query->order('rand()');

        if (!$query->clause('limit')) {
            $query->limit(1);
        }

        return $query;
    }
public function findRandom ( Query $ query , array $ options ) { $ query -> order ( 'rand()' ) ; if ( ! $ query -> clause ( 'limit' ) ) { $ query -> limit ( 1 ) ; } return $ query ; }
"random" find method
@param Query $query Query object
@param array $options Options
@return Query Query object
random find method