Sim genetics

My two dark haired sims had a child with stark white hair??? How do genetics work in this game.