The odds of randomly forming compounds which are themselves made of subsidiary compounds might as well be infinite!
Evolution is NOT a random process so your logic is flawed. The key is natural selection a non-random process.
Do you agree that you have put forward a strawman that has nothing to do with thevolution or can you show where the theory of evolution says there are only random processes involved?