It's a question that biologists are interested in, but it has zero relevance to how evolution works.
The question of whether evolution is random or not is simply not stated usefully. Variation is mostly random. It does not anticipate need. Selection is not random for a species. the conditions of the environment can be studied to any arbitrary degree of precision, and the environment determines which variants are most successful at producing offspring.
Evolution cannot produce a new feature simply because it is needed. If it could, species would not go extinct.
The variations that do get produced, by whatever mechanism, are all that selection has to work with.
If the former, that's not the debate. The debate is around organisms' movement to more complex forms from simple forms as one species gives rise to another. Note the title of the thread.
The process has to be either guided by an intelligent force or happen by aimless movement of basic elements. If the latter, you must start with bare rock, water and other combinations of elements that just naturally form even today.
If life is presupposed, you must accept the existence of an intelligent designer, or you have to show how life came about and test it by using that process to create it.
Do you stipulate an intelligent designer?