Things don’t evolve for a reason, it’s completely random and it doesn’t matter if it’s beneficial as long as it doesn’t harm the organism.
Obviously if your random mutation helps you in some way that will increase the odds that you get to have kids and pass it on but even if it is completely useless that doesn’t mean you won’t have children anyway.
Latest Answers