using System;
using System.Collections.Generic;
using System.Text;

namespace PigeonAndOstrich
{
    class Pigeon : Bird
    {
        public override Egg[] LayEggs(int numberOfEggs)
        {
            Egg[] eggs = new Egg[numberOfEggs];
            for (int i = 0; i < numberOfEggs; i++)
            {
                if (Bird.Randomizer.Next(4) == 0)
                    eggs[i] = new BrokenEgg("Białe");
                else
                    eggs[i] = new Egg(Bird.Randomizer.NextDouble() * 2 + 1, "Białe");
            }
            return eggs;
        }
    }
}
