When you have two children in Stardew Valley, you will always end up with one boy and one girl. However, the first child you have is completely random, and you have a 50/50 chance of having either a boy or a girl. Then the game will make sure that the second child is the gender that you do not already have.