At least in plants there is some evidence that mutations produced and then acted on by natural selection are not fully random. It is a long held assumption this should not be possible, but there are interesting lines of evidence suggesting it may be. It would open the chance of there being a kind of (limited) underlying logic.
This is an example. Epigenetically driven evolution in arabodopsis, which protects certain regions from mutation. In a very limited sense, evolution might be said to "care" about something here, as it is kind of taking direction from the environment, not simply acting on uniformly random mutations. Nothing like this is known in animals or most anywhere else afaik.