* Switched random string generation function