using System.Collections.Generic;
public static void Main()
List<int> list = new List<int>();
RandomGenerator generator = new RandomGenerator();
int rand = generator.RandomNumber(1, 10);
int rand2 = generator.RandomNumber(1, 10);
Console.WriteLine("Sorted input:");
public class RandomGenerator {
public int RandomNumber(int min,int max)
Random random = new Random();
return random.Next(min, max);