A helper for generate a random string