Added a randomString() function