Added new routine to generate strings randomly.