public static SingleDuckSimulator GetSingleSimulator(Duck d, int quackDelay, int flyAwayDelay) { var simDuck = new SingleDuckSimulator {Duck = d, SecondsDelay = quackDelay, SecondsTilFlyAway = flyAwayDelay}; return simDuck; }
public static SingleDuckSimulator GetSingleSimulator(Duck duck) { return GetSingleSimulator(duck, Random.Next(1, 5), Random.Next(6, 20)); }