Hammerhead worms reproduce both sexually and asexually, producing an egg capsule that hatches in about 23 days.