public int id {get; set;}
public string name {get; set;}
public static void Main()
Console.WriteLine("how many tests?");
counter = int.Parse(Console.ReadLine());
tests = new test[counter];
for (int x = 0; x < tests.Length; x++)
foreach (test thisTest in tests)
thisTest.name = "test"+r.Next(1,20).ToString();
Console.WriteLine(thisTest.id+" = "+thisTest.name);
Console.WriteLine("do you want another list of test values?");
while( Console.ReadLine().Contains("y") );