TLDR; just put the template in a file, use ai to modify it to your wishes. And I’m talking a bit about my own experience and what I did.

I’m using Anki quite a lot, for learning geography with the Ultimate Geography Deck, learning Kanji or learning stuff for university.

Well and its a lot of math, like I want a card for everything (guess its inefficient, but fun at least and helps me being motivated). So having a static card is not really an option, since my brain will just remember the solution and finished, I won’t think much about it and wouldn’t need to solve the question again and again …

So what did I do? I created a template which allows to define ranges for random values that are inserted into the template.

a anki math card template with random values each time

on each refresh, the values are different, so it’s always a new different thing to solve, making me learn the way to solve it instead of just a solution.

#
Creating card templates

Well, so how was it done? Pretty easy, I just took a anki card template I already had (anki tum card template). Copied the front into a file called front.html, the back in back.html, put it in the same folder, opened Zed Editor.

Then opened the AI Panel, ran it (glm 5.2, as I got the cheap coder plan from z.ai), told it to create an interactive card template for me, which presents me everytime with a random matrix and has the determinant calculated in the back. And it went pretty well, I got a working template.

inside zed, letting ai edit a template

#
What can you do besides this?

You can basically task the ai to create any template idea you have, make all your cards interactive. For me it improved the fun of solving the cards by a lot, making it not all rember and repeat without thinking.

I also created a template where I have a few variable fields, like a,b,c,d,… where I can fill in ranges and use it in the card + use calculations like $(a + b), this allows making a lot of pretty cool math cards, with a lot of exercies I can solve that have random values.

defining vars for the anki cards

But you could e.g. also create cards for an interactive x-y-diagram, or make the solar system interactive? maybe its funnier to click on the planets instead of just saying the positions? maybe have them even spinning, it just makes the learning more fun.

Also you could make cards choose a random font and color each time, this is relevant for language learning, at least for japanese. Since often I just map the image of a kanji to its meaning. If I see it in Japan then in a different font, I can’t read it at all xD This way my brain gets forced to memorize the radicals (parts) of the kanji

#
Examples for cards where I use random values

an anki card, where I have to simplify an expression

inverse matrix anki

You can view my math template on Github