Then your understanding of evolution is lacking. Evolution involves random mutations, minute changes over time to the benefit of some organism, which is dubious at best because an organism would have to experiment with change in order to find which is best and then adopt only that specific mutation, this implies intelligence and the ability to develop mutations spontaneously. Mutations themselves are probematic as they tend to be detrimental to the life of the organism (>70%).
Selective pressure bias from the environment: and there goes randomness. Mutation is not the sole driver of evolution, nor is randomness.