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