added code to generate random text