My friend is an evolutionary biologist and she says most males in a species will generally produce offspring of the same gender (as in the ratio of one gender will be notably higher), and that in some species the females are consistently attracted to males of the same type biologically speaking and those types tend to produce the same gendered offspring too.