public Warren(int Variability, int rabbitCount) { this.Variability = Variability; this.RabbitCount = rabbitCount; Rabbits = new Rabbit[MaxRabbitsInWarren]; for (int r = 0; r < RabbitCount; r++) { Rabbits[r] = new Rabbit(Variability); } }
public Warren(int Variability) { this.Variability = Variability; Rabbits = new Rabbit[MaxRabbitsInWarren]; RabbitCount = (int)(CalculateRandomValue((int)(MaxRabbitsInWarren / 4), this.Variability)); for (int r = 0; r < RabbitCount; r++) { Rabbits[r] = new Rabbit(Variability); } }