Evolution is trial and error. The errors die to a greater degree. The successes go one to build on that success. This causes such wonderous structures as electric eels.
SG, look at what you just wrote.
Get what right? How would evolution even know it got something right or wrong? This needed to be done millions of times. Then we will have to believe that there was desire to get things right but desire by whom? by what?