def words(min_size, max_size = None):
        """
        Generates a random text that consists of random number of random words separated by spaces.

        :param min_size: (optional) a minimum number of words.

        :param max_size: a maximum number of words.

        :return: a random text.
        """
        max_size = max_size if max_size != None else min_size
        result = ""
        
        count = RandomInteger.next_integer(min_size, max_size)
        for i in range(count):
            result += random.choice(_all_words)

        return result