Generate code programmatically:

LLMSynthesize[{LLMPrompt["CodeWriterX"],"Simulate a random walk"}]

Generate code programmatically with the "target" language being Python:

LLMSynthesize[{LLMPrompt["CodeWriterX"]["Python"],"Simulate a random walk"}]

Neat Examples

conf=LLMConfiguration["Model"-><|"Service"->"OpenAI","Name"->"gpt-5.4-mini"|>];

ResourceFunction["GridTableForm"]@Dataset@Table[<|
"Language"->lang,
"Code"->
LLMSynthesize[{
LLMPrompt["CodeWriterX"][lang],
"Find all words in a list that adhere to the Raku regex /:i class \d ** 1..3 /"
},LLMEvaluator->conf]
|>,
{lang,{"WL","Python","R","Raku"}}]