Generates random sentences based on given text.