Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Random randomizer = new Random();
- int num;
- for (int i = 0; i < amount; i++)
- {
- num = randomizer.Next(0, 1000);
- array[i] = new Laptop(num);
- list.Add(new Laptop(num));
- arrayList.Add(new Laptop(num));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement