I have been working on this program for a WHILE now and I got it working for the most part. What my program does is randomly picks an element from a list of strings. I have been told by @HappyMoo (who has been a BIG help so far) to create another list to store the order in which the strings are selected. But what I need help with is how to print out what order according to the random string generator.
This diagram should help:
I also tried using extension classes to output the random strings but all that does is just print the list together and not separately how I want it.
Also, what @ArkaneX said also made it clear to me what I had to do which was use ToArray() to output the list. The problem is that it only outputs the list in the default order.
string[] gestureOptions = {
Cube_DemoPhase.task1Gesture[0],
Cube_DemoPhase.task1Gesture[1],
Cube_DemoPhase.task1Gesture[2]
};
Next, I managed to create the following but this does not work as it only outputs the list in the default order as well.
for (int i = gestureOptions.Length - 1; i > 0; i--)
{
gestureOptions <em>= Cube_DemoPhase.index*.ToString();*</em>
}
What I wanted to do here is output the string list based in the order that the random number generator has chosen.
Can anyone help me figure out what I need to do to get to work how I want it? Thank you again!