Random rani = new Random(); ArrayList list = new ArrayList(); int i; for (i = 1; i <= 10; i++) { list.Add(rani.Next(1, 100)); }