This is my current code:
Console.WriteLine("\nWhat would you like to say?");
Console.Write("A. ");
p1r = p1rnd.Next(p1list.Count); //CHOICE A
Console.Write(p1list[p1r]);
Console.Write("B. ");
p1r = p1rnd.Next(p1list.Count); //CHOICE B
Console.Write(p1list[p1r]);
Console.Write("C. ");
p1r = p1rnd.Next(p1list.Count); //CHOICE C
Console.Write(p1list[p1r]);
p1choiceA = Console.ReadLine();
My issue is that, for example, I want to remove CHOICE A. Is there a way to refer to that, even if I already created a random instance for CHOICE C?
Generally, Is there a way to refer to an old instance after declaring a new one? Thanks for the help.
Aucun commentaire:
Enregistrer un commentaire