fork download
  1. using System;
  2. using static System.Console;
  3. using System.Collections.Generic;
  4.  
  5. public class Program {
  6. public static void Main() {
  7. var random = new Random();
  8. var ListaPerguntas = new List<string> { "Pergunta1", "Pergunta2", "Pergunta3", "Pergunta4" };
  9. WriteLine(ListaPerguntas[random.Next(ListaPerguntas.Count)]);
  10. }
  11. }
  12.  
  13. //https://pt.stackoverflow.com/q/461593/101
Success #stdin #stdout 0.02s 15784KB
stdin
Standard input is empty
stdout
Pergunta3