Same here. Evolution doesn't work that way. It's basically the opposite. Species don't evolve to solve a problem, they evolve randomly and sometimes that solves a problem for them. Or sometimes, it pushes the species into a very narrow niche where its survival is ensured as long as the current extremely precarious situation they find themselves in doesn't change.
Species don’t evolve to solve a problem, they evolve randomly and sometimes that solves a problem for them.
Eh... they mutate randomly, and then selection acts. If there is variation that solves a problem, selection will promote that variation.
Evolution is very much not random, it is a direct consequence of variation and selection. This does not mean that they evolve to solve problems, but problems often drive evolution.
Selected through continued survival and reproduction. Maybe a more accurate template would be something like, "Awesome, I've evolved with [trait] which deters predators!"