strgen with randomString()

Copy over randomString() and create a main method for it