0

Hello Forum, how are you?

Okay so, I wish to create a bunch of strings. Simple....

string myName = "Usmaan";
string myOccupation = "Engineer";
string myFav = "DaniWeb";
string randomString = "";

Now what I want to do is, make the compiler randomly....I repeat, randomly select one of those strings, copy it's value/content and paste it in to another string variable.

So if for example, myName got "randomly" selected then the randomString should now contain "Usmaan".

How would I implement this?


Any help will be highly appreciated.

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by ddanbe
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.