1
Basically, I intended to choose a Random Question from the 'Question List', and when I write the code, it gives me an error in the bold part (the one inside the **).
private void EscolhaDaPergunta()
{
var random = new Random();
ListaPerguntas =**{ "Pergunta1","Pergunta2","Pergunta3","Pergunta4"};**
int index = random.Next(ListaPerguntas.Count);
Console.WriteLine(ListaPerguntas[index]);
}
Thanks for the help! :)
– Diogo Viveiros