using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
Random r = new Random();
List<int> lista = new List<int>();
while (lista.Count < 10000)
int n = r.Next(10000,99999);
if (!lista.Contains(n))
lista.Add(n);
}
Console.WriteLine(lista.Count + " números gerados.");