You might as well use a single card where the front side is picked randomly, i.e. delete card template 2 and use some JavaScript on card template 1.
There are some examples of this on the forum already. Most solutions will involve Anki Persistence, a JS script that allows you to persist variables between front and backside.
You could modify this one for example: Random front of card - #2 by kleinerpirat