Ditto breds female only help!

whenever i bred any pokemon with ditto it always give a female pokemon eg.I bred ditto with a male flygon and when the egg hatches it comes out as a female

please help Thanks

It’s pure bad luck on your part. Are you trying to soft reset? If yes, save before picking up the egg rather than after.