You could move the order('RANDOM()') to a scope.