using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
{
List<string> ReadFile = File.ReadAllLines(@"D:\Data.txt").ToList();
List<string> random = new List<string>();
Random rnd = new Random();
Console.Write("Do you want to Number of value : ");
string number = Console.ReadLine();
int want = 100- ReadFile.Count -(Int32.Parse(number))-1;
for (int j = 0; j <100; j++)
{
random.Add(j.ToString());
}
for (int i = 0; i < ReadFile.Count; i++)
{
random.Remove(ReadFile[i]);
}
for (int j = 0; j < want; j++)
{
for (int i = 0; i < 1; i++)
{
int k = rnd.Next(0, random.Count);
random.Remove(random[k]);
}
int count = 0;
int row=20;
foreach (string ii in random)
{
if (Int32.Parse(count.ToString()) % row != 0)
{
if (Int32.Parse(ii) == Int32.Parse(random.Last()))
{
if (Int32.Parse(ii) < 10)
{
Console.Write("0" + ii.ToString());
}
else
{
Console.Write(ii.ToString());
}
}
else
{
if (Int32.Parse(ii) < 10)
{
Console.Write("0" + ii.ToString() + ",");
}
else
{
Console.Write(ii.ToString() + ",");
}
}
}
else
{
Console.WriteLine();
}
count++;
Thread.Sleep(10);
}
Console.WriteLine("\n");
}
}
}
}