This article covers a useful LLM pattern where you ask the LLM to write code to solve a problem instead of asking it to solve the problem directly.
If there is a 50% chance something will go wrong, then 9 times out of 10 it will.