示例#1
0
        void RandomData(int amount, ArrayList alis, List <Book> list, Printed_Edition[] arr, CollectionType <Book> collection)
        {
            Random r = new Random();

            for (int i = 0; i < amount; i++)
            {
                Book p = new Book();
                p.Price = r.Next(0, Int32.MaxValue) / 100;
                alis.Add(p);
                list.Add(new Book());
                arr[i] = new Book();
                collection.Add(new Book());
                list[i].Price       = r.Next(0, Int32.MaxValue) / 100;
                arr[i].Price        = r.Next(0, Int32.MaxValue) / 100;
                collection[i].Price = r.Next(0, Int32.MaxValue) / 100;
            }
        }