I have two strings, g1 and g2. I’m randomly determining whether to use g1, or g2, that is, like a cointoss. How do I go about doing something like g + coin(); to output g1, or g2, depending on what coin() returns?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
How about just: