Parents who only seem to have boys or girls might put it down to something in their genes, especially if the pattern repeats over generations.
But a study of birth records of nearly five million children has proved that whether a baby is a boy or girl is totally random, and that any exceptions can be explained as flukes.
To test whether having boys or girls might "run in families" researchers looked at whether siblings of someone who has lots of boys or girls would also be more likely to show the same tendency, indicating a genetic basis.
They also performed an additional test.
If a tendency to have boys or girls was more likely, then if a couple has already had a boy baby, there would be a higher likelihood of another one.