fork(2) download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. List<int> listaNumeros = new List<int>() { 95, 4, 9, 52, 40, 800, 90, 11, 2, 9, 4, 92, 8, 91, 120, 111 };
  9. Random rand = new Random(DateTime.Now.Millisecond);
  10. int resultado = listaNumeros[rand.Next(listaNumeros.Count())];
  11. System.Console.WriteLine(resultado);
  12. }
  13. }
Success #stdin #stdout 0.05s 33912KB
stdin
Standard input is empty
stdout
4