<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def text(self, quantity: int = 5) -> str: """Generate the text. :param quantity: Quantity of sentences. :return: Text. """

        text = ''
        for _ in range(quantity):
            text += ' ' + self.random.choice(self._data['text'])
        return text.strip()