Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public Person(Person dad, Person mom)
 {
     firstName = Path.GetRandomFileName().Replace(".", "");
     familyName = dad.familyName;
 }
Exemplo n.º 3
0
 public void AddChild(Person c)
 {
     children.Add(c);
 }