int [] intarry = new int [100];
ArrayList myList = new ArrayList();
Random rd = new Random();
for (int i = 0; i < 100; i ++ )
{
// myList.Add(rd.Next(1,101));
int num = rd.Next(1,101);
if(!myList.Contains(num))
{
myList.Add(num);
}
}
for (int k = 0; k < myList.Count; k++ )
{
intarry[k] =(int) myList[k];
Console.WriteLine(intarry[k]);
}
Console.Read();