A function that generates random strings