How do you change your tamagotchi into a girl?

It's random. You can not change the gender, the gender is randomly generated when you have an egg.