public void RandomFamily() { //TODO: Random family name generator string familyName = "Smith"; dad = new Person(); mom = new Person(); for(int i = 0; i <= randomWeightedNumberOfChildren(); i++) { Person c = new Person(); AddChild(c); } SetFamilyName(familyName); }
public Person(Person dad, Person mom) { firstName = Path.GetRandomFileName().Replace(".", ""); familyName = dad.familyName; }
public void AddChild(Person c) { children.Add(c); }